better MULTI_USER_MODE

This commit is contained in:
Massimo Di Pierro
2012-03-26 16:15:29 -05:00
parent 1017b68c1f
commit 4f17616b0f
4 changed files with 10 additions and 4 deletions
+4
View File
@@ -12,6 +12,10 @@ except:
session.flash='sorry, only on Unix systems'
redirect(URL(request.application,'default','site'))
if MULTI_USER_MODE and not is_manager():
session.flash = 'Not Authorized'
redirect(URL('default','site'))
forever=10**8
def kill():