public function isGranted($privilegeType, $subject, &$reason = '')
    {
        return $this->isGrantedForRoles($this->securityContext->getRoles(), $privilegeType, $subject, $reason);
    }
public function isGranted($privilegeType, $subject, &$reason = '')
    {
        return $this->isGrantedForRoles($this->securityContext->getRoles(), $privilegeType, $subject, $reason);
    }
public function isGranted ( $ privilegeType , $ subject , & $ reason = '' ) { return $ this -> isGrantedForRoles ( $ this -> securityContext -> getRoles ( ) , $ privilegeType , $ subject , $ reason ) ; }
Returns true, if the given privilege type is granted for the given subject based
on the current security context.

@param string $privilegeType The type of privilege that should be evaluated
@param mixed $subject The subject to check privileges for
@param string $reason This variable will be filled by a message giving information about the reasons for the result of this method
@return boolean
Returns true if the given privilege type is granted for the given subject based on the current security context .