Revert to old list method until we start updating the cache.
[invirt/packages/invirt-web.git] / getafsgroups.py
index 2de20bc..899de81 100644 (file)
@@ -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