mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
DX: fix phpstan issues with more strict type hinting in AuthorizationHelperInterface
This commit is contained in:
@@ -360,10 +360,12 @@ final class PersonContext implements PersonContextInterface
|
||||
|
||||
private function isScopeNecessary(Person $person): bool
|
||||
{
|
||||
if ($this->showScopes && 1 < $this->authorizationHelper->getReachableScopes(
|
||||
$this->security->getUser(),
|
||||
PersonDocumentVoter::CREATE,
|
||||
$this->centerResolverManager->resolveCenters($person)
|
||||
if ($this->showScopes && 1 < count(
|
||||
$this->authorizationHelper->getReachableScopes(
|
||||
$this->security->getUser(),
|
||||
PersonDocumentVoter::CREATE,
|
||||
$this->centerResolverManager->resolveCenters($person)
|
||||
)
|
||||
)) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user