Checks if a user has the specified permissions on a resource.
public static checkPermissions ( string $filter, integer $permission = Horde_Perms::READ, string $resource = null ) : boolean | ||
$filter | string | What are we checking for. Either 'backend' or 'directory'. |
$permission | integer | The permission to check for. One of the Horde_Perms constants. |
$resource | string | The resource to check. If empty, check the current backend/directory. |
리턴 | boolean | Returns true if the user has permission. |