Fix a bug in getafsgroups.
svn path=/trunk/web/; revision=246
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
def getListDict(user):
- machines = [m for m in Machine.select()
- if validation.haveAccess(user, m)]
+ machines = [m for m in Machine.select()
+ if validation.haveAccess(user, m)]
+ #if user == 'moo':
+ # machines = Machine.select()
+ #else:
+ # machines = Machine.query().join('users').filter_by(user=user).all()
checkpoint.checkpoint('Got my machines')
on = {}
has_vnc = {}