Extend Nos\Orm\Model.
Parameters: |
|
---|---|
Returns: | True if the role has the required authorisation, false otherwise |
List all the categories of a given permission name. Returns an array of string or false when the role has not access, or the permission name does not exists.
param string $permission_name: The name of the permission to retrieve categories from param string $category_key: (optional) If the permission has categories, the category key to check against returns: array|false An array containing the list of categories (values) for the request permission name