Skip to content

Commit

Permalink
Issue krayin#1071 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay bhatt committed Sep 2, 2022
1 parent 72e8c34 commit e3b326a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/Webkul/Admin/src/Http/Middleware/Bouncer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function handle($request, \Closure $next, $guard = 'user')
if ($this->isPermissionsEmpty()) {
auth()->guard($guard)->logout();

session()->flash('error', __('admin::app.errors.401'));

return redirect()->route('admin.session.create');
}

Expand Down

0 comments on commit e3b326a

Please sign in to comment.