major update
This commit is contained in:
@@ -37,5 +37,9 @@ class AuthorizationService
|
||||
|
||||
return AuthorizationDecision::deny(500, 'authorization_policy_missing');
|
||||
}
|
||||
}
|
||||
|
||||
public function allow(string $ability, array $context = []): bool
|
||||
{
|
||||
return $this->authorize($ability, $context)->isAllowed();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user