Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] forward multiple attributes voting flag #36283

Merged
merged 1 commit into from Mar 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -47,8 +47,10 @@ public function __construct(AccessDecisionManagerInterface $manager)

/**
* {@inheritdoc}
*
* @param bool $allowMultipleAttributes Whether to allow passing multiple values to the $attributes array
*/
public function decide(TokenInterface $token, array $attributes, $object = null): bool
public function decide(TokenInterface $token, array $attributes, $object = null/*, bool $allowMultipleAttributes = false*/): bool
xabbuh marked this conversation as resolved.
Show resolved Hide resolved
{
$currentDecisionLog = [
'attributes' => $attributes,
Expand All @@ -58,7 +60,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)

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

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

$currentDecisionLog['result'] = $result;

Expand Down