Function __global->set_privilege

Definitions

sources/permissions3.php

  • Sets the privilege of a usergroup.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$group_id GROUP required parameter N/A N/A The usergroup having the permission set
$permission ID_TEXT required parameter N/A N/A The codename of the permission
$value boolean required parameter N/A N/A Whether the usergroup has the permission
$page ?ID_TEXT Null N/A N/A The page being checked (null: current page)
$permission_module ?ID_TEXT Null N/A N/A The permission module (null: none required)
$category_name ?ID_TEXT Null N/A N/A The category-name/value for the permission (null: none required)