Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Commit

Permalink
Fix double redirects pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Oct 12, 2016
1 parent 22e4f4f commit ebe9299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/AdminAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function handle(Request $request, Closure $next)
if (!$request->user()->isPrivilegedUser()) {
flash()->error('You do not have permission to access that area.');

return redirect()->back();
return redirect()->route('index');
}

return $next($request);
Expand Down

0 comments on commit ebe9299

Please sign in to comment.