Function __global->has_privilege
Definitions
sources/permissions.php
- Find if a member has a specified privilege.
- 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 | Null | N/A | N/A | The page being checked (null: current page) |
$cats | ?mixed | Null | N/A | N/A | A list of cat details to require access to (c-type-1,c-id-1,c-type-2,c-d-2,...), or a string of the cat type if you will accept overrides in any matching cat (null: N/A) |
Return
- Whether the member has the privilege
- Type: boolean
- Set: N/A
- Range: N/A