Skip to content

Commit 95c60c8

Browse files
committed
bug symfony#19272 [Security] fixed DebugAccessDecisionManager::setVoters() (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()
2 parents 3726aa1 + c1a2a0a commit 95c60c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
6262
*/
6363
public function setVoters(array $voters)
6464
{
65-
if (!$this->manager instanceof AccessDecisionManager) {
65+
if (!method_exists($this->manager, 'setVoters')) {
6666
return;
6767
}
6868

0 commit comments

Comments
 (0)