8000 forward multiple attributes voting flag · symfony/symfony@ae8726a · GitHub
[go: up one dir, main page]

Skip to content

Commit ae8726a

Browse files
committed
forward multiple attributes voting flag
1 parent a164e22 commit ae8726a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(AccessDecisionManagerInterface $manager)
4848
/**
4949
* {@inheritdoc}
5050
*/
51-
public function decide(TokenInterface $token, array $attributes, $object = null): bool
51+
public function decide(TokenInterface $token, array $attributes, $object = null/*, bool $allowMultipleAttributes = false*/): bool
5252
{
5353
$currentDecisionLog = [
5454
'attributes' => $attributes,
@@ -58,7 +58,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
5858

5959
$this->currentLog[] = &$currentDecisionLog;
6060

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

6363
$currentDecisionLog['result'] = $result;
6464

0 commit comments

Comments
 (0)
0