r53582 - tracker/instances/python-dev/detectors/userauditor.py

Author: erik.forsberg Date: Sat Jan 27 21:56:27 2007 New Revision: 53582 Modified: tracker/instances/python-dev/detectors/userauditor.py Log: Don't bail out when _creating_ users. Modified: tracker/instances/python-dev/detectors/userauditor.py ============================================================================== --- tracker/instances/python-dev/detectors/userauditor.py (original) +++ tracker/instances/python-dev/detectors/userauditor.py Sat Jan 27 21:56:27 2007 @@ -35,7 +35,7 @@ if not db.security.role.has_key(rolename): raise ValueError, 'Role "%s" does not exist'%rolename - if "admin" in roles: + if None != nodeid and "admin" in roles: if not "admin" in [x.lower().strip() for x in cl.get(nodeid, 'roles')]: raise ValueError, "Only Admins may assign the Admin role!"
participants (1)
-
erik.forsberg