diff --git a/VERSION b/VERSION index 6a530f4d..4fe8ce3a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-21 12:19:41) dev +Version 1.99.7 (2012-04-22 20:18:56) dev diff --git a/applications/admin/models/db.py b/applications/admin/models/db.py index 0d1f7ab3..4b98283a 100644 --- a/applications/admin/models/db.py +++ b/applications/admin/models/db.py @@ -14,6 +14,8 @@ if MULTI_USER_MODE: mail.settings.sender = EMAIL_SENDER mail.settings.login = EMAIL_LOGIN + auth.settings.extra_fields['auth_user'] = \ + [Field('is_manager','boolean',default=False,writable=False)] auth.define_tables() # creates all needed tables auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = True @@ -30,7 +32,7 @@ if not session.authorized and MULTI_USER_MODE: def is_manager(): if not MULTI_USER_MODE: return True - elif auth.user and auth.user.id==1: + elif auth.user and (auth.user.id==1 or auth.user.is_manager): return True else: return False