Changes between Version 27 and Version 28 of BluePrintOrganisationRegistry


Ignore:
Timestamp:
03/19/11 14:53:14 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintOrganisationRegistry

    v27 v28  
    160160 * Only staff of an organisation have permissions (READ, CREATE, UPDATE and/or DELETE) for their organisation resource.
    161161 * Only staff stationed at a certain site have permissions (READ, CREATE, UPDATE and/or DELETE) for their site resource.
     162
    162163For further flexibility, there are 2 boolean fields for staff:
    163164 * {{{no_access}}} - If this is true, this staff member has no additional privileges (labelled as 'Read-only')
    164165 * {{{supervisor}}} - This gives the options for more permissive permissions for some staff.
    165166
    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:
     167If a user creates a resource (Site or Organisation) then they are automatically given a staff record with Supervisor access to that resource.
     168
     169The 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:
    167170{{{
    168171# Create roles for each organisation / site instance
    169172s3xrc.model.configure(table,
    170                       onaccept = shn_staff_join_onaccept_func(tablename)) 
     173                       create_onaccept = shn_staff_join_onaccept_func(tablename)) 
    171174}}}
    172175(This code should be called after the resource table is defined in the model)
    173176
    174 If a user creates a resource (Site or Organisation) then they are automatically given a staff record with Supervisor access to that resource.
    175177=== Enabling Staff Permissions ===
    176178 1. Set: