Function __global->has_category_access
Definitions
sources/permissions.php
- Find if a member has access to a specified 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 access |
$permission_module | ID_TEXT | required parameter | N/A | N/A | The permission module being checked for category access |
$category | ID_TEXT | required parameter | N/A | N/A | The category being checked for access (often, a number cast to a string) |
Return
- Whether the member has category access
- Type: boolean
- Set: N/A
- Range: N/A