Skip to content

Commit

Permalink
Update CheckPermission.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonSmit authored Mar 2, 2020
1 parent df6ec35 commit d79094f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/CheckPermission.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()->hasPermission($permission))
{
return redirect()->route('cms.dashboard')->withError('You do not have the permission '. $permission);
return redirect()->back()->withError('You do not have the permission '. $permission);
}

return $next($request);
Expand Down

0 comments on commit d79094f

Please sign in to comment.