Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit d526edc

Browse files
committed
[Security] fixed DebugAccessDecisionManager::setVoters()
1 parent 8a9f6c7 commit d526edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)