Function __global->has_privilege_group

Definitions

sources/permissions2.php

  • Find if a group has a specified privilege.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$group_id GROUP required parameter N/A N/A The being checked whether to have the privilege
$privilege ID_TEXT required parameter N/A N/A The privilege being checked for
$page ?ID_TEXT Null N/A N/A The page being checked (null: current page)
$cats ?array Null N/A N/A A list of cat details to require access to (c-type-1,c-id-1,c-type-2,c-d-2,...) (null: N/A)

Return

  • Whether the member has the privilege
  • Type: boolean
  • Set: N/A
  • Range: N/A