hasAnyPermissions()
Overview
public boolean function hasAnyPermissions(
required array permissionKeys
, string context = ""
, array contextKeys
, string userId = ID of logged in user
)
Returns whether or not the user has any permission to the given set of keys.
See CMS permissioning for a full guide to CMS users and permissions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
permissionKeys | array | Yes | The permission keys as defined in `Config.cfc` |
context | string | No (default="") | Optional named context |
contextKeys | array | No | Array of keys for the given context (required if context supplied) |
userId | string | No (default=ID of logged in user) | ID of the user whose permissions we wish to check |