/**
* Returns TRUE if access is granted on the given privilege target in the current security context
* or if set based on the override decision value.
*
* @param string $privilegeTargetIdentifier The identifier of the privilege target to decide on
* @param array $privilegeParameters Optional array of privilege parameters (simple key => value array)
* @return boolean TRUE if access is granted, FALSE otherwise
*/
public function isPrivilegeTargetGranted($privilegeTargetIdentifier, array $privilegeParameters = [])
{
if ($this->overrideDecision === false) {
return false;
} elseif ($this->overrideDecision === true) {
return true;
}
return parent::isPrivilegeTargetGranted($privilegeTargetIdentifier, $privilegeParameters);
}