summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrealmfoo <konstantin.leboev@gmail.com>2011-05-16 11:03:06 +0400
committerrealmfoo <konstantin.leboev@gmail.com>2011-05-16 11:03:06 +0400
commit111f1e758a0919556c2c2fdd8fd8779303113f30 (patch)
tree1099d1616522b7e76a3c5a4f7303a44a4f4ffe29
parent70cfab061f99a8c44c168cb3b493b9eac88159a1 (diff)
downloadsymfony-security-111f1e758a0919556c2c2fdd8fd8779303113f30.zip
symfony-security-111f1e758a0919556c2c2fdd8fd8779303113f30.tar.gz
symfony-security-111f1e758a0919556c2c2fdd8fd8779303113f30.tar.bz2
Calling supportsClass from vote to find out if we can vote
-rw-r--r--Acl/Voter/AclVoter.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Acl/Voter/AclVoter.php b/Acl/Voter/AclVoter.php
index 7bd8610..140628c 100644
--- a/Acl/Voter/AclVoter.php
+++ b/Acl/Voter/AclVoter.php
@@ -88,6 +88,11 @@ class AclVoter implements VoterInterface
return $this->allowIfObjectIdentityUnavailable ? self::ACCESS_GRANTED : self::ACCESS_ABSTAIN;
}
+
+ if (!$this->supportsClass($oid->getType())) {
+ return self::ACCESS_ABSTAIN;
+ }
+
$sids = $this->securityIdentityRetrievalStrategy->getSecurityIdentities($token);
try {