Function __global->has_delete_comcode_page_permission

Definitions

sources/permissions.php

  • Check to see if a member has permission to delete a specific Comcode page.
  • 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 required parameter N/A N/A The zone of the page
$page ID_TEXT No No required parameter N/A N/A The name of the page
$owner ?MEMBER No No Null N/A N/A Owner of the page (null: look it up)
$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 permission to delete a specific Comcode page.
 *
 * @param  ID_TEXT $zone The zone of the page
 * @param  ID_TEXT $page The name of the page
 * @param  ?MEMBER $owner Owner of the page (null: look it up)
 * @param  ?MEMBER $member_id The member being checked for access (null: current member)
 * @return boolean If the permission is there
 */

function has_delete_comcode_page_permission(string $zone, string $page, ?int $owner = null, ?int $member_id = null) : bool