Skip to content

Commit

Permalink
Update CheckRole.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonSmit authored Mar 2, 2020
1 parent d79094f commit 29e7aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/CheckRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function handle($request, Closure $next, $permission)

if(!$request->user()->hasRole($permission))
{
return redirect()->route('cms.dashboard')->withError('You do not have the role '. $permission);
return redirect()->back()->withError('You do not have the role '. $permission);
}

return $next($request);
Expand Down

0 comments on commit 29e7aac

Please sign in to comment.