mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
Remove usage of deprecated Role class
This commit is contained in:
@@ -91,7 +91,7 @@ class ThirdPartyVoter extends AbstractChillVoter implements ProvideRoleHierarchy
|
||||
|
||||
return true;
|
||||
$centers = $this->authorizationHelper
|
||||
->getReachableCenters($user, new Role($attribute));
|
||||
->getReachableCenters($user, $attribute);
|
||||
|
||||
if (null === $subject) {
|
||||
return count($centers) > 0;
|
||||
|
Reference in New Issue
Block a user