Changes between Version 92 and Version 93 of BluePrintAuthorization
- Timestamp:
- 06/25/10 15:04:05 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthorization
v92 v93 94 94 === Function restriction === 95 95 * Decorator function: 96 * ~~@auth. requires_membership("Administrator")~~97 * not efficient now we have {{{session.s3.roles}}} - should write a {{{@auth.shn_requires_membership()}}} decorator for the simple case96 * ~~@auth.shn_requires_membership("Administrator")~~ 97 * ~~rewritten to use shn_has_role()~~ 98 98 * doesn't support OR, doesn't support NOT 99 99 * We need a function which efficiently handles OR, AND & NOT. With roles cached in session, this is easy: