From 81b096ea72fd2762274b6285172c9377e373e71b Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 4 Aug 2008 23:23:44 -0400 Subject: [PATCH] configurize admin-mode acl svn path=/trunk/packages/sipb-xen-www/; revision=868 --- code/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/main.py b/code/main.py index 42a456e..cb7375f 100755 --- a/code/main.py +++ b/code/main.py @@ -600,9 +600,9 @@ def admin(username, state, path, fields): return ({'Status': '303 See Other', 'Location': 'admin/'}, "You shouldn't see this message.") - if not username in getAfsGroupMembers('system:xvm', 'athena.mit.edu'): + if not username in getAfsGroupMembers(config.web.adminacl, 'athena.mit.edu'): raise InvalidInput('username', username, - 'Not in admin group %s.' % 'system:xvm') + 'Not in admin group %s.' % config.web.adminacl) newstate = State(username, isadmin=True) newstate.environ = state.environ return handler(username, newstate, path, fields) -- 1.7.9.5