Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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://www.r4vi.org Ravindra de Silva ]] Contributors: ...+Important NoteThis page is DEPRECATED! 
 + 
 +The new approach is documented here: 
 +  * [[security Data Security and Privacy Design]]
  
 ====== 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. For each function a  brief explanation of how they correspond to phpgacl is included for phpgacl users. 
-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. for each function a  brief explanation of how they correspond to phpgacl is included for phpgacl users. +
  
 **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 "OR" adds a module ,e.g "OR"
-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,$action_group,$desc) ===== ===== shn_acl_add_action_group($module,$action_group,$desc) =====
  
-adds an action group under the module ,e.g "create"+adds an action group under the module, e.g "create"
 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”->"modules"->"or e.g  it will be added under “shn”->"modules"->"or
Line 48: Line 51:
 ===== shn_acl_add_role($role,$desc) ===== ===== shn_acl_add_role($role,$desc) =====
  
-adds a role,e.g "admin"+adds a role, e.g "admin"
 this is a ARO group this is a ARO group
  
Line 203: Line 206:
     $res=shn_acl_add_perms_action_case_role('guest','shn_or_test2','view_all');     $res=shn_acl_add_perms_action_case_role('guest','shn_or_test2','view_all');
 </code> </code>
 +
 +Main Author: [[http://www.r4vi.org | Ravindra de Silva ]] Contributors: ...
 +

Navigation
QR Code
QR Code dev:authorization (generated for current page)