src/Zicht/Bundle/FrameworkExtraBundle/Twig/Extension.php
public function isGranted($role, $object = null, $field = null)
    {
        if (null !== $field) {
            $object = new FieldVote($object, $field);
        }
        return $this->authChecker->isGranted($role, $object);
    }
public function isGranted($role, $object = null, $field = null)
    {
        if (null !== $field) {
            $object = new FieldVote($object, $field);
        }
        return $this->authChecker->isGranted($role, $object);
    }
public function isGranted ( $ role , $ object = null , $ field = null ) { if ( null !== $ field ) { $ object = new FieldVote ( $ object , $ field ) ; } return $ this -> authChecker -> isGranted ( $ role , $ object ) ; }
The template may assume that the role will be denied when there is no security context, therefore we override
the default behaviour here.

@param string $role
@param mixed $object
@param mixed $field
@return bool
The template may assume that the role will be denied when there is no security context therefore we override the default behaviour here .