Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:authorization [2007/02/10 11:55] fran |
dev:authorization [2009/07/06 20:36] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Main Author: [[http:// | + | Important Note: This page is DEPRECATED! |
+ | |||
+ | The new approach is documented here: | ||
+ | * [[security | ||
====== Introduction ====== | ====== Introduction ====== | ||
- | This is the authorization library ,therefore you should use this API to add and check permissions. | + | This is the authorization library, therefore you should use this API to add and check permissions. |
- | There are two includes. | + | There are two includes: |
+ | - acl_api.inc This includes all the API functions you need at the moment | ||
+ | - acl.inc This file contains functions that interact with phpgacl library and rarely you need to use these functions. | ||
- | 1.acl_api.inc | + | In this tutorial only functions in acl_api.inc are explained. |
- | This includes all the API functions you need at the moment | + | |
- | 2.acl.inc | + | |
- | This file contains functions that interact with phpgacl library and rarely you need to use these functions. | + | |
- | + | ||
- | in this tutorial only functions in acl_api.inc are explained. | + | |
**note** : “shn” stands for “Sahana” | **note** : “shn” stands for “Sahana” | ||
+ | |||
+ | [[acldesign|ACL Design]] | ||
+ | [[acl|ACL Example]] | ||
====== ACl API ====== | ====== ACl API ====== | ||
Line 23: | Line 26: | ||
adds a module ,e.g " | adds a module ,e.g " | ||
- | this is an AXO group under the “shn”AXO group | + | this is an AXO group under the “shn” AXO group |
===== shn_acl_add_action_group($module, | ===== shn_acl_add_action_group($module, | ||
- | adds an action group under the module ,e.g " | + | adds an action group under the module, e.g " |
this is an AXO group under the module AXO group. | this is an AXO group under the module AXO group. | ||
e.g it will be added under “shn”->" | e.g it will be added under “shn”->" | ||
Line 48: | Line 51: | ||
===== shn_acl_add_role($role, | ===== shn_acl_add_role($role, | ||
- | adds a role,e.g " | + | adds a role, e.g " |
this is a ARO group | this is a ARO group | ||
Line 203: | Line 206: | ||
$res=shn_acl_add_perms_action_case_role(' | $res=shn_acl_add_perms_action_case_role(' | ||
</ | </ | ||
+ | |||
+ | Main Author: [[http:// | ||
+ |