Permission

class Permission
static Permission::check($permission_name, $category_key = null)

This is a helper to call Nos\User\Model_User::check_permission for the logged Nos\User\Model_User.

Parameters:
  • $permission_name (string) – Name of the permission to check against
  • $category_key (string) – (optional) If the permission has categories, the category key to check against
Returns:

True if the user has the required authorisation, false otherwise.

Read the Docs v: chiba.1
Versions
latest
chiba.2
chiba.1
0.2
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.