module/User/src/Grid/User/View/Helper/IsAllowed.php
public function isAllowed( $resource, $privilege = null, $role = null )
    {
        return $this->getPermissionsModel()
                    ->isAllowed( $resource, $privilege, $role );
    }
public function isAllowed( $resource, $privilege = null, $role = null )
    {
        return $this->getPermissionsModel()
                    ->isAllowed( $resource, $privilege, $role );
    }
public function isAllowed ( $ resource , $ privilege = null , $ role = null ) { return $ this -> getPermissionsModel ( ) -> isAllowed ( $ resource , $ privilege , $ role ) ; }
Is a permission allowed or not

@param   string|\Zend\Permissions\Acl\Resource\ResourceInterface $resource
@param   string                                                  $privilege
@param   string|\Zend\Permissions\Acl\Role\RoleInterface         $role
@return  bool
Is a permission allowed or not