8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7c676 commit 338b3dfCopy full SHA for 338b3df
src/Symfony/Component/Security/Http/Firewall/AccessListener.php
@@ -68,7 +68,14 @@ public function __invoke(RequestEvent $event)
68
$this->tokenStorage->setToken($token);
69
}
70
71
- if (!$this->accessDecisionManager->decide($token, $attributes, $request)) {
+ $granted = false;
72
+ foreach ($attributes as $key => $value) {
73
+ if ($this->accessDecisionManager->decide($token, [$key => $value], $request)) {
74
+ $granted = true;
75
+ }
76
77
+
78
+ if (!$granted) {
79
$exception = new AccessDeniedException();
80
$exception->setAttributes($attributes);
81
$exception->setSubject($request);
0 commit comments