listPermissionKeys()
Overview
public array function listPermissionKeys(
string role = ""
, string group = ""
, string user = ""
, array filter
)
Returns an array of permission keys that apply to the given arguments.
See CMS permissioning for a full guide to CMS users and permissions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
role | string | No (default="") | If supplied, the method will return permission keys that the role has access to |
group | string | No (default="") | If supplied, the method will return permission keys that the group has access to |
user | string | No (default="") | If supplied, the method will return permission keys that the user has access to |
filter | array | No | An array of filters with which to filter permission keys |