Function __global->has_some_edit_comcode_page_permission

Definitions

sources/permissions.php

  • Check to see if a member has permission to edit a Comcode page.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$scope integer required parameter N/A N/A A bitmask of COMCODE_EDIT_* constants, identifying what kind of editing privilege we are looking for
$zone ?ID_TEXT Null N/A N/A Zone to check for (null: check against global privileges, ignoring all per-zone overrides). Note how this is different to how a null zone works for checking add/bypass-validation privileges because if we get a false we have the get_comcode_page_editability_per_zone function to get more specific details, while for adding we either want a very specific or very vague answer.
$member_id ?MEMBER Null N/A N/A The member being checked for access (null: current member)

Return

  • If the permission is there
  • Type: boolean
  • Set: N/A
  • Range: N/A