Changes between Version 8 and Version 9 of BluePrintAuthenticationAccess


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

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintAuthenticationAccess

    v8 v9  
    1414 * {{{t2.have_access()}}}
    1515
    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_admin
    20 }}}
    21 
    2216This should probably be done by hooking into the [wiki:BluePrintREST RESTlike controller]
    2317
     
    2721 * http://openidenabled.com/python-openid/
    2822
    29 Look at T3 for AAA:
    30  * protect function components with: {{{if not is_admin: t2.redirect('index',flash=T('Not Authorised'))}}}
     23T3 defines a simple {{{t2.is_admin}}} check in {{{db.py}}}:
     24{{{
     25is_admin=(t2.logged_in and (not settings.administrator_emails or t2.person_email in settings.administrator_emails))
     26t2.is_admin=is_admin
     27}}}
     28 * Function components with: {{{if not is_admin: t2.redirect('index',flash=T('Not Authorised'))}}}
    3129 * appadmin protected in the same way :)
    3230