| 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'' |
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 |