module/User/src/Grid/User/Model/Permissions/Model.php
public function getRole()
    {
        if ( null === $this->role )
        {
            $auth = $this->getAuthenticationService();

            if ( $auth->hasIdentity() )
            {
                $this->role = $auth->getIdentity();
            }
            else
            {
                $this->role = new Acl\Role\GenericRole( self::ROLE_GUEST_ID );
            }
        }

        return $this->role;
    }
public function getRole()
    {
        if ( null === $this->role )
        {
            $auth = $this->getAuthenticationService();

            if ( $auth->hasIdentity() )
            {
                $this->role = $auth->getIdentity();
            }
            else
            {
                $this->role = new Acl\Role\GenericRole( self::ROLE_GUEST_ID );
            }
        }

        return $this->role;
    }
public function getRole ( ) { if ( null === $ this -> role ) { $ auth = $ this -> getAuthenticationService ( ) ; if ( $ auth -> hasIdentity ( ) ) { $ this -> role = $ auth -> getIdentity ( ) ; } else { $ this -> role = new Acl \ Role \ GenericRole ( self :: ROLE_GUEST_ID ) ; } } return $ this -> role ; }
Get inner acl-role

@return \Zend\Permissions\Acl\Role\RoleInterface
Get inner acl - role