Changes between Version 9 and Version 10 of BluePrintAuthenticationAccess


Ignore:
Timestamp:
01/08/09 18:53:51 (13 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintAuthenticationAccess

    v9 v10  
    2121 * http://openidenabled.com/python-openid/
    2222
    23 T3 defines a simple {{{t2.is_admin}}} check in {{{db.py}}}:
     23T3 defines a simple {{{t2.is_admin}}} defined in {{{db.py}}}:
    2424{{{
    2525is_admin=(t2.logged_in and (not settings.administrator_emails or t2.person_email in settings.administrator_emails))
    2626t2.is_admin=is_admin
    2727}}}
    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'))}}}
    2929 * appadmin protected in the same way :)
    3030