diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 21c9784c..20c80561 100755 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -44,6 +44,11 @@ class Handler extends ExceptionHandler */ public function render($request, Exception $exception) { + if ($exception instanceof \Symfony\Component\HttpKernel\Exception\HttpException + && $exception->getStatusCode() == 403) { + return redirect()->guest('login'); + } + return parent::render($request, $exception); }