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 91a986d commit c31f924Copy full SHA for c31f924
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