X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/4663602deda7a8c90d59c8d3a57cd5a3945d73ca..66cccc3c93b4cd7d98c14564db63ee9831c4047e:/getafsgroups.py diff --git a/getafsgroups.py b/getafsgroups.py index 2de20bc..899de81 100644 --- a/getafsgroups.py +++ b/getafsgroups.py @@ -76,8 +76,8 @@ def notLockerOwner(user, locker): return str(e) for entry in values: - if entry[0] == user or (entry[0][0:6] == "system" and - checkAfsGroup(user, entry[0], cell)): + if entry == user or (entry[0:6] == "system" and + checkAfsGroup(user, entry, cell)): return False return "You don't have admin bits on /mit/" + locker