summaryrefslogtreecommitdiffstats
path: root/Acl
diff options
context:
space:
mode:
Diffstat (limited to 'Acl')
-rw-r--r--Acl/Voter/AclVoter.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Acl/Voter/AclVoter.php b/Acl/Voter/AclVoter.php
index 0e1567d..574b5c2 100644
--- a/Acl/Voter/AclVoter.php
+++ b/Acl/Voter/AclVoter.php
@@ -82,6 +82,12 @@ class AclVoter implements VoterInterface
$this->logger->debug(sprintf('Object identity unavailable. Voting to %s', $this->allowIfObjectIdentityUnavailable? 'grant access' : 'abstain'));
}
+ if (!$this->supportsClass($oid->getType())) {
+ return self::ACCESS_ABSTAIN;
+ }
+
+ $sids = $this->securityIdentityRetrievalStrategy->getSecurityIdentities($token);
+
return $this->allowIfObjectIdentityUnavailable ? self::ACCESS_GRANTED : self::ACCESS_ABSTAIN;
}
$sids = $this->securityIdentityRetrievalStrategy->getSecurityIdentities($token);