Merge branch 'develop'

This commit is contained in:
Simon Vieille 2022-03-10 22:29:59 +01:00
commit dc34a954f6

View file

@ -51,15 +51,13 @@ class RequestSecurityEventSubscriber implements EventSubscriberInterface
$isGranted = $this->authorizationChecker->isGranted($role);
if ('or' === $operator && $isGranted) {
$isAuthorized = true;
return;
} elseif ('and' === $operator && !$isGranted) {
throw $exception;
}
}
if (!$isAuthorized) {
throw $exception;
}
throw $exception;
}
public static function getSubscribedEvents(): array