Function __global->has_zone_access
Definitions
sources/permissions.php
- Find if a member has access to a specified zone.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | The member being checked whether to have the access |
| $zone | ID_TEXT | No | No | required parameter | N/A | N/A | The zone being checked |
Returns
- Whether the member has zone access
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find if a member has access to a specified zone.
*
* @param MEMBER $member_id The member being checked whether to have the access
* @param ID_TEXT $zone The zone being checked
* @return boolean Whether the member has zone access
*/
function has_zone_access(int $member_id, string $zone) : bool
* Find if a member has access to a specified zone.
*
* @param MEMBER $member_id The member being checked whether to have the access
* @param ID_TEXT $zone The zone being checked
* @return boolean Whether the member has zone access
*/
function has_zone_access(int $member_id, string $zone) : bool

