Changes between Version 8 and Version 9 of BluePrintAuthenticationAccess
- Timestamp:
- 01/08/09 18:53:22 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthenticationAccess
v8 v9 14 14 * {{{t2.have_access()}}} 15 15 16 T3 defines a simple {{{t2.is_admin}}} check in {{{db.py}}}:17 {{{18 is_admin=(t2.logged_in and (not settings.administrator_emails or t2.person_email in settings.administrator_emails))19 t2.is_admin=is_admin20 }}}21 22 16 This should probably be done by hooking into the [wiki:BluePrintREST RESTlike controller] 23 17 … … 27 21 * http://openidenabled.com/python-openid/ 28 22 29 Look at T3 for AAA: 30 * protect function components with: {{{if not is_admin: t2.redirect('index',flash=T('Not Authorised'))}}} 23 T3 defines a simple {{{t2.is_admin}}} check in {{{db.py}}}: 24 {{{ 25 is_admin=(t2.logged_in and (not settings.administrator_emails or t2.person_email in settings.administrator_emails)) 26 t2.is_admin=is_admin 27 }}} 28 * Function components with: {{{if not is_admin: t2.redirect('index',flash=T('Not Authorised'))}}} 31 29 * appadmin protected in the same way :) 32 30