mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
fix: Strict types interfaces: VoterHelperInterface
, ProvideRoleHierarchyInterface
and ProvideRoleInterface
.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Security\Authorization;
|
||||
|
||||
use Chill\MainBundle\Entity\User;
|
||||
@@ -50,7 +52,7 @@ final class DefaultVoterHelper implements VoterHelperInterface
|
||||
}
|
||||
|
||||
if (NULL === $subject) {
|
||||
return 0 < count($this->authorizationHelper->getReachableCenters($token->getUser(), $attribute, null));
|
||||
return [] !== $this->authorizationHelper->getReachableCenters($token->getUser(), $attribute, null);
|
||||
}
|
||||
|
||||
return $this->authorizationHelper->userHasAccess(
|
||||
|
Reference in New Issue
Block a user