Function __global->has_page_access
Definitions
sources/permissions.php
- Find if a member has access to a specified page, in a specific zone. Note that page access does not imply zone access; you have access a page, but not the zone, so still couldn't see it.
- 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 |
$page | ID_TEXT | required parameter | N/A | N/A | The page being checked |
$zone | ID_TEXT | required parameter | N/A | N/A | The zone being checked |
$at_now | boolean | False | N/A | N/A | Whether we want to check we have access to the CURRENT page, using any match-key permissions |
Return
- Whether the member has page access
- Type: boolean
- Set: N/A
- Range: N/A