Changes between Version 1 and Version 2 of AccessControl
- Timestamp:
- 09/02/09 09:37:24 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AccessControl
v1 v2 46 46 {{{ 47 47 Context 48 Entity ----> Roleckage | role | group 49 --------------------------- 50 xyz | admin | admin 51 xyz | edit | anonymous 52 xyz | read | anonmyous 53 xyz | purge | editor 54 48 Entity ----> Role 55 49 56 50 Context … … 61 55 Package level: 62 56 63 * Package Roles: admin, editor, readerckage | role | group 64 --------------------------- 65 xyz | admin | admin 66 xyz | edit | anonymous 67 xyz | read | anonmyous 68 xyz | purge | editor 69 57 * Package Roles: admin, editor, reader 70 58 * Entities: [email protected] (user), pseudo-users 'visitor' 71 59 * Assignment of entities to roles in a given context (the package) … … 76 64 77 65 System level permissions: 78 ckage | role | group79 ---------------------------80 xyz | admin | admin81 xyz | edit | anonymous82 xyz | read | anonmyous83 xyz | purge | editor84 85 66 * Roles:?? 86 67 * create package … … 103 84 # can do anything ... 104 85 return True 105 for role in contextroles:ckage | role | group 106 --------------------------- 107 xyz | admin | admin 108 xyz | edit | anonymous 109 xyz | read | anonmyous 110 xyz | purge | editor 111 86 for role in contextroles: 112 87 # assuming 'ORing' of permissions 113 88 if role.is_allowed(action) … … 118 93 return False 119 94 }}} 120 ckage | role | group121 ---------------------------122 xyz | admin | admin123 xyz | edit | anonymous124 xyz | read | anonmyous125 xyz | purge | editor126 95 127 96 === Initializing Permissions for a Package ===