Changes between Version 9 and Version 10 of BluePrintAuthenticationAccess
- Timestamp:
- 01/08/09 18:53:51 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthenticationAccess
v9 v10 21 21 * http://openidenabled.com/python-openid/ 22 22 23 T3 defines a simple {{{t2.is_admin}}} checkin {{{db.py}}}:23 T3 defines a simple {{{t2.is_admin}}} defined in {{{db.py}}}: 24 24 {{{ 25 25 is_admin=(t2.logged_in and (not settings.administrator_emails or t2.person_email in settings.administrator_emails)) 26 26 t2.is_admin=is_admin 27 27 }}} 28 * Function components with: {{{if not is_admin: t2.redirect('index',flash=T('Not Authorised'))}}}28 * Function components protected with: {{{if not is_admin: t2.redirect('index',flash=T('Not Authorised'))}}} 29 29 * appadmin protected in the same way :) 30 30