Changes between Version 27 and Version 28 of BluePrintOrganisationRegistry
- Timestamp:
- 03/19/11 14:53:14 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintOrganisationRegistry
v27 v28 160 160 * Only staff of an organisation have permissions (READ, CREATE, UPDATE and/or DELETE) for their organisation resource. 161 161 * Only staff stationed at a certain site have permissions (READ, CREATE, UPDATE and/or DELETE) for their site resource. 162 162 163 For further flexibility, there are 2 boolean fields for staff: 163 164 * {{{no_access}}} - If this is true, this staff member has no additional privileges (labelled as 'Read-only') 164 165 * {{{supervisor}}} - This gives the options for more permissive permissions for some staff. 165 166 166 This is done by the {{{shn_create_record_roles}}} function in {{{models/05_org.py}}}, which can be called from a org or site onaccept by configuring the onaccept for that resource as following: 167 If a user creates a resource (Site or Organisation) then they are automatically given a staff record with Supervisor access to that resource. 168 169 The roles are created by the {{{shn_create_record_roles}}} function in {{{models/05_org.py}}}, which can be called from an org or site create_onaccept by configuring the model as following: 167 170 {{{ 168 171 # Create roles for each organisation / site instance 169 172 s3xrc.model.configure(table, 170 onaccept = shn_staff_join_onaccept_func(tablename))173 create_onaccept = shn_staff_join_onaccept_func(tablename)) 171 174 }}} 172 175 (This code should be called after the resource table is defined in the model) 173 176 174 If a user creates a resource (Site or Organisation) then they are automatically given a staff record with Supervisor access to that resource.175 177 === Enabling Staff Permissions === 176 178 1. Set: