Extend Nos\Orm\Model.
Check whether a permissions exists with the given category.
| Parameters: |
|
|---|---|
| Returns bool: | true or false |
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.
| Parameters: |
|
|---|---|
| Returns: | array|false An array containing the list of categories (values) for the request permission name |
Alias to Nos\User\Model_Role::checkPermission with $allow_empty = true.
Alias to Nos\User\Model_Role::checkPermission.
Alias to Nos\User\Model_Role::checkPermission with $allow_empty = true.
Check against a binary permission (without categories).
| Parameters: |
|
|---|---|
| Returns bool: | true or false |
Check against a numeric / range permission.
You can use string for the 2nd and 3rd parameters, they will be casted to (int). i.e. '2_write' === 2.
| Parameters: |
|
|---|---|
| Returns bool: | true or false |
Check against a numeric / range permission.
You can use string for the 2nd and 3rd parameters, they will be casted to (int). i.e. '2_write' === 2.
| Parameters: |
|
|---|---|
| Returns bool: | true or false |
Retrieve the value of a given permission.
| Parameters: |
|
|---|---|
| Returns string: |