src/snac/server/ServerExecutor.php
/**
     * Check if the current user has permission
     *
     * Checks whether the current user has the permission requested.  If the permissions have not been set up
     * in this server executor instance yet, it will automatically create it from the user object.
     *
     * @param  string  $permission The permission/privilege name
     * @return boolean             True if the user has that permission, false otherwise
     */
Check if the current user has permission
Checks whether the current user has the permission requested.  If the permissions have not been set up
in this server executor instance yet, it will automatically create it from the user object.

@param  string  $permission The permission/privilege name
@return boolean             True if the user has that permission, false otherwise
Check if the current user has permission Checks whether the current user has the permission requested . If the permissions have not been set up in this server executor instance yet it will automatically create it from the user object . @param string $permission The permission / privilege name @return boolean True if the user has that permission false otherwise
function hasPermission($permission) {
        if ($this->permissions == null) {
            $this->getUserPermissions();
        }
        if (isset($this->permissions[$permission]) && $this->permissions[$permission] === true)
            return true;
        return false;
    }
function hasPermission ( $ permission ) { if ( $ this -> permissions == null ) { $ this -> getUserPermissions ( ) ; } if ( isset ( $ this -> permissions [ $ permission ] ) && $ this -> permissions [ $ permission ] === true ) return true ; return false ; }
Check if the current user has permission
 Checks whether the current user has the permission requested.
Check if the current user has permission Checks whether the current user has the permission requested .