Changes between Version 12 and Version 13 of BluePrintAuthorizationB


Ignore:
Timestamp:
06/20/10 14:47:27 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintAuthorizationB

    v12 v13  
    6767  - ''shn_has_role()'' tests can be combined by '''and''', '''or''' and '''not'''
    6868=== Table/Record Access ===
     69{{{shn_permit(table, method, role, id=None)}}}
     70  - adds ''role'' to the list of permitted roles for ''method'' on ''table'' (record ''id'' of the table)
     71{{{shn_deny(table, method, role, id=None)}}}
     72  - removes ''role'' from the list of permitted roles for ''method'' on ''table'' (record ''id'' of the table)
     73{{{shn_restrict(table, method, role=None, id=None)}}}
     74  - sets the list of permitted roles for method on table (record ''id'' of the table) to ''role''
    6975
    70   - table/record access can be restricted by:
    71     - '''shn_permit(table, method, role, id=None)''' adds role to the list of permitted roles for method on table/record
    72     - '''shn_deny(table, method, role, id=None)''' removes role from the list of permitted roles for method on table/record
    73     - '''shn_restrict(table, method, role, id=None)''' replaces the list of permitted roles for method on table/record with [role]
    74   - table/record access permission is tested by:
    75     - '''shn_permitted(table, method, id=None)''', which returns True/False refering to the current user
     76{{{shn_permitted(table, method, id=None)}}}
     77  - returns True/False refering to the current user
    7678
    7779  - record restrictions override table permissions