mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
Fix: authorization helper won't send a list of center if an admin is authenticated
This commit is contained in:
@@ -120,6 +120,11 @@ class AuthorizationHelper implements AuthorizationHelperInterface
|
||||
if ($role instanceof Role) {
|
||||
$role = $role->getRole();
|
||||
}
|
||||
|
||||
if (!$user instanceof User) {
|
||||
return [];
|
||||
}
|
||||
|
||||
/** @var array<string, Center> $centers */
|
||||
$centers = [];
|
||||
|
||||
|
Reference in New Issue
Block a user