Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy::isAceApplicable
Determines whether the ACE is applicable to the given permission/security identity combination.
Per default, we support three different comparison strategies. Strategy ALL: The ACE will be considered applicable when all the turned-on bits in the required mask are also turned-on in the ACE mask. Strategy ANY: The ACE will be considered applicable when any of the turned-on bits in the required mask is also turned-on the in the ACE mask. Strategy EQUAL: The ACE will be considered applicable when the bitmasks are equal.
Signature
private function isAceApplicable(integer
$requiredMask,
EntryInterface
$ace )
Parameters
$requiredMask
— integer$ace
— Symfony\Component\Security\Acl\Model\EntryInterface
Returns
- Boolean
Errors/Exceptions
-
RuntimeException
- if the ACE strategy is not supported