Function __global->has_some_cat_privilege
Definitions
sources/permissions.php
- Find if a member has a specified privilege in any category.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$member_id | MEMBER | required parameter | N/A | N/A | The member being checked whether to have the privilege |
$privilege | ID_TEXT | required parameter | N/A | N/A | The privilege being checked for |
$page | ?ID_TEXT | required parameter | N/A | N/A | The page being checked (null: current page) |
$permission_module | ID_TEXT | required parameter | N/A | N/A | The permission module being checked for |
Return
- Whether the member has the privilege
- Type: boolean
- Set: N/A
- Range: N/A