public function isGuestAllowed()
    {
        if (null === $user = $this['repo.users']->findByLogin(User::USER_GUEST)) {
            return false;
        }

        return count($this->getAclForUser($user)->get_granted_base()) > 0;
    }
public function isGuestAllowed()
    {
        if (null === $user = $this['repo.users']->findByLogin(User::USER_GUEST)) {
            return false;
        }

        return count($this->getAclForUser($user)->get_granted_base()) > 0;
    }
public function isGuestAllowed ( ) { if ( null === $ user = $ this [ 'repo.users' ] -> findByLogin ( User :: USER_GUEST ) ) { return false ; } return count ( $ this -> getAclForUser ( $ user ) -> get_granted_base ( ) ) > 0 ; }
Returns true if guest access is allowed.

@return boolean
Returns true if guest access is allowed .