Changes between Version 66 and Version 67 of BluePrintAuthenticationAccess
- Timestamp:
- 06/18/10 09:27:28 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthenticationAccess
v66 v67 27 27 == Authorization == 28 28 We want to be able to provide a simple way of setting the overall security policy - allowing for flexible deployment options. 29 30 New BluePrintAuthorisation. 31 29 32 * Anonymous access is granted for all Read operations, with Create/Update/Delete requiring a user to be Authenticated 30 33 * Anonymous access isn't granted for anything - all access requires a user to be Authenticated … … 46 49 (NB The Vol module currently uses a separate method) 47 50 48 We also want to look at whether we should link the {{{auth_user}}} table with the [BluePrintPersonRegistry Person Registry]'s person table51 We link the {{{auth_user}}} table with the [BluePrintPersonRegistry Person Registry]'s {{{pr_person}}} table. 49 52 50 The admin role is pre-defined during initialisation in {{{ 00_db.py}}} (The first user to register will have this role by default):53 The admin role is pre-defined during initialisation in {{{zzz_1st_run.py}}} (The first user to register will have this role by default): 51 54 {{{ 52 table = 'auth_group'55 table = "auth_group" 53 56 # 1st-run initialisation 54 if not len(db().select(db[table]. ALL)):55 auth.add_group( 'Administrator',description='System Administrator - can access & make changes to any data')57 if not len(db().select(db[table].id)): 58 auth.add_group("Administrator", description="System Administrator - can access & make changes to any data") 56 59 # 1st person created will be System Administrator (can be changed later) 57 auth.add_membership(1, 1)60 auth.add_membership(1, 1) 58 61 }}} 59 62