X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/a14f1cec3751f18f56c28c7a5ea20b54ab319bc6..93b6c515269009d01122cce77c54937ea029da72:/code/cache_acls.py diff --git a/code/cache_acls.py b/code/cache_acls.py index f7575e1..9f8d66a 100644 --- a/code/cache_acls.py +++ b/code/cache_acls.py @@ -27,7 +27,7 @@ def expandName(name): if ':' not in name: if isUser(name): return [name] - name = 'system:'+name + return [] try: return getafsgroups.getAfsGroupMembers(name, 'athena.mit.edu') except getafsgroups.AfsProcessError: @@ -46,7 +46,8 @@ def refreshMachine(m): ma = [x for x in m.acl if x.user == removed][0] ctx.current.delete(ma) for p in people - old_people: - ma = MachineAccess(machine_id=m.machine_id, user=p) + ma = MachineAccess(user=p) + m.acl.append(ma) ctx.current.save(ma) def refreshCache():