Changes between Version 7 and Version 8 of BluePrintAuthenticationAccess


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

+t2.is_admin

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintAuthenticationAccess

    v7 v8  
    1414 * {{{t2.have_access()}}}
    1515
     16T3 defines a simple {{{t2.is_admin}}} check in {{{db.py}}}:
     17{{{
     18is_admin=(t2.logged_in and (not settings.administrator_emails or t2.person_email in settings.administrator_emails))
     19t2.is_admin=is_admin
     20}}}
     21
    1622This should probably be done by hooking into the [wiki:BluePrintREST RESTlike controller]
    1723