Filters a list of resources based on whether a user has certain
permissions on it.
public static permissionsFilter ( array $in, string $filter, integer $permission = Horde_Perms::READ, string $user = null, string $creator = null ) : array | ||
$in | array | A list of resources to check. |
$filter | string | The kind of resource specified in $in, one of 'queue', 'queue_id', 'reply', or 'comment'. |
$permission | integer | A permission, one of the PERM_* constants. |
$user | string | A user name. |
$creator | string | The creator of an object in the resource, e.g. a ticket creator. |
return | array | The list of resources matching the permission criteria. |