1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 17:07:19 +02:00

Merge pull request #720 from Albert221/permission-denied-fix

#719 Fixed PermissionDeniedException
This commit is contained in:
Franz Liedke
2016-01-13 12:31:38 +01:00
3 changed files with 18 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ class HandleErrors implements ErrorMiddlewareInterface
$status = $errorCode;
}
if ($this->debug && $errorCode !== 404) {
if ($this->debug && ! in_array($errorCode, [403, 404])) {
$whoops = new WhoopsMiddleware;
return $whoops($error, $request, $response, $out);