Function __global->has_bypass_validation_comcode_page_permission
Definitions
sources/permissions.php
- Check to see if a member has bypass-validation permission for Comcode pages.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $zone | ?ID_TEXT | No | No | Null | N/A | N/A | The zone of Comcode pages we need it in (null: ANY zone, we are doing a vague check if the user could possibly) |
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | The member being checked for access (null: current member) |
Returns
- If the permission is there
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check to see if a member has bypass-validation permission for Comcode pages.
*
* @param ?ID_TEXT $zone The zone of Comcode pages we need it in (null: ANY zone, we are doing a vague check if the user could possibly)
* @param ?MEMBER $member_id The member being checked for access (null: current member)
* @return boolean If the permission is there
*/
function has_bypass_validation_comcode_page_permission(?string $zone = null, ?int $member_id = null) : bool
* Check to see if a member has bypass-validation permission for Comcode pages.
*
* @param ?ID_TEXT $zone The zone of Comcode pages we need it in (null: ANY zone, we are doing a vague check if the user could possibly)
* @param ?MEMBER $member_id The member being checked for access (null: current member)
* @return boolean If the permission is there
*/
function has_bypass_validation_comcode_page_permission(?string $zone = null, ?int $member_id = null) : bool

