Changes between Version 88 and Version 89 of BluePrintAuthorization
- Timestamp:
- 06/22/10 15:36:42 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthorization
v88 v89 96 96 * Decorator function: 97 97 * ~~@auth.requires_membership("Administrator")~~ 98 * not efficient now we have {{{session.s3.roles}}} - should write a {{{@auth.shn_requires_membership()}}} decorator for the simple case 98 99 * doesn't support OR, doesn't support NOT 99 * not efficient now we have {{{session.s3.roles}}}100 100 * We need a function which efficiently handles OR, AND & NOT. With roles cached in session, this is easy: 101 101 {{{