-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] fixed DebugAccessDecisionManager::setVoters() #19272
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
Conversation
👍 This check makes much more sense imo Status: reviewed |
Tests are failing :( Status: Needs Work |
@@ -62,7 +62,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null) | ||
*/ | ||
public function setVoters(array $voters) | ||
{ | ||
if (!$this->manager instanceof AccessDecisionManager) { | ||
if (!method_exists($this->voters, 'setVoters')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I missing something or you are calling method_exists
on an array?
Should it not be !method_exists($this->manager, 'setVoters')
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of courses! Went to quickly on this one, thanks!
df4c4b8
to
c1a2a0a
Compare
Status: Needs Review |
Thank you @HeahDude. |
…HeahDude) This PR was merged into the 3.1 branch. Discussion ---------- [Security] fixed DebugAccessDecisionManager::setVoters() | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | schmittjoh/JMSSecurityExtraBundle#207 | License | MIT | Doc PR | ~ Commits ------- c1a2a0a [Security] fixed DebugAccessDecisionManager::setVoters()
Uh oh!
There was an error while loading. Please reload this page.