Changes between Version 1 and Version 2 of RFC/ItemPerms

Show
Ignore:
Author:
werner (IP: 84.145.218.114)
Timestamp:
11/13/05 13:26:10 (8 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RFC/ItemPerms

    v1 v2  
    1 FIXME: Look over new file...  
    2  
    3 == Universal Item Permissions module == 
     1= Universal Item Permissions module = 
    42 
    53'''Module description:''' 
    64 
    75Create a table with this fields: 
    8 - module_id    # Ex: publisher, shop, newsletter 
    9 - class_id    # Ex. for shop module: shop, prices 
    10 - item_id     # Ex 13 
    11 - action_id  # Ex edit 
    12 - users   #the users id separated by comma (like now) 
    13 - roles   # the roles id separated by comma 
    14 - grant   # allow or deny if the rule is matched 
     6  * module_id    # Ex: publisher, shop, newsletter 
     7  * class_id    # Ex. for shop module: shop, prices 
     8  * item_id     # Ex 13 
     9  * action_id  # Ex edit 
     10  * users   #the users id separated by comma (like now) 
     11  * roles   # the roles id separated by comma 
     12  * grant   # allow or deny if the rule is matched 
    1513 
    1614Of course for speed will use numbers for cols 1-4. 
    2523 
    2624For example: 
    27         hasPerms('publisher','article',13,'edit',9,1); 
     25        `hasPerms('publisher','article',13,'edit',9,1);` 
     26 
    2827This will check if user 9 from role 1 has perms to edit article 13 from publisher module. Again, we use id's for publisher, article, edit. 
    2928