10000 bug #36283 [Security] forward multiple attributes voting flag (xabbuh) · symfony/symfony@6f25ce5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f25ce5

Browse files
bug #36283 [Security] forward multiple attributes voting flag (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [Security] forward multiple attributes voting flag | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #36280 | License | MIT | Doc PR | Commits ------- 1b7ec67 forward multiple attributes voting flag
2 parents a164e22 + 1b7ec67 commit 6f25ce5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ public function __construct(AccessDecisionManagerInterface $manager)
4747

4848
/**
4949
* {@inheritdoc}
50+
*
51+
* @param bool $allowMultipleAttributes Whether to allow passing multiple values to the $attributes array
5052
*/
51-
public function decide(TokenInterface $token, array $attributes, $object = null): bool
53+
public function decide(TokenInterface $token, array $attributes, $object = null/*, bool $allowMultipleAttributes = false*/): bool
5254
{
5355
$currentDecisionLog = [
5456
'attributes' => $attributes,
@@ -58,7 +60,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
5860

5961
$this->currentLog[] = &$currentDecisionLog;
6062

61-
$result = $this->manager->decide($token, $attributes, $object);
63+
$result = $this->manager->decide($token, $attributes, $object, 3 < \func_num_args() && func_get_arg(3));
6264

6365
$currentDecisionLog['result'] = $result;
6466

0 commit comments

Comments
 (0)
0