Skip to content

Commit

Permalink
Revert changes on TwoFactorAccessDecider
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Nov 15, 2023
1 parent 5ba1664 commit 1ff5a79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bundle/Security/Authorization/TwoFactorAccessDecider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public function isAccessible(Request $request, TokenInterface $token): bool
}

// Let routes pass, e.g. if a route needs to be callable during two-factor authentication
if (null !== $attributes && $this->accessDecisionManager->decide($token, $attributes, $request)) {
// Originally compatibility for Symfony < 6.0, true flag to support multiple attributes
// Still needed for compatibility with Symfony 7
/** @psalm-suppress TooManyArguments */
if (null !== $attributes && $this->accessDecisionManager->decide($token, $attributes, $request, true)) {
return true;
}

Expand Down

0 comments on commit 1ff5a79

Please sign in to comment.