mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
Always grant master API keys sudo mode
This commit is contained in:
@@ -75,7 +75,7 @@ trait AssertPermissionTrait
|
||||
{
|
||||
$session = $request->getAttribute('session');
|
||||
|
||||
if (! $session || $session->get('sudo_expiry') < new DateTime) {
|
||||
if ($session && $session->get('sudo_expiry') < new DateTime) {
|
||||
throw new InvalidAccessTokenException;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user