mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Derp fix
This commit is contained in:
parent
e1681a7021
commit
7578b640bd
@ -70,7 +70,7 @@ class RedirectDisplayer implements DisplayerInterface
|
||||
*/
|
||||
public function canDisplay(Exception $exception)
|
||||
{
|
||||
$redirect = $exception instanceof HttpExceptionInterface && $exception->getCode() === 401;
|
||||
$redirect = $exception instanceof HttpExceptionInterface && $exception->getStatusCode() === 401;
|
||||
|
||||
return $redirect && !$this->request->is('api*');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user