mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
#719 Fixed PermissionDeniedException
...causing Whoops on debug and 500 HTTP error instead of 403 Forbidden error page.
This commit is contained in:
@@ -14,4 +14,8 @@ use Exception;
|
||||
|
||||
class PermissionDeniedException extends Exception
|
||||
{
|
||||
public function __construct($message = null, $code = 403, Exception $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user