Changeset 246
- Timestamp:
- Nov 13, 2007, 8:18:32 PM (17 years ago)
- Location:
- trunk/web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/getafsgroups.py
r236 r246 77 77 78 78 for entry in values: 79 if entry [0] == user or (entry[0][0:6] == "system" and80 checkAfsGroup(user, entry [0], cell)):79 if entry == user or (entry[0:6] == "system" and 80 checkAfsGroup(user, entry, cell)): 81 81 return False 82 82 return "You don't have admin bits on /mit/" + locker -
trunk/web/main.py
r243 r246 185 185 186 186 def getListDict(user): 187 machines = [m for m in Machine.select() 188 if validation.haveAccess(user, m)] 187 machines = [m for m in Machine.select() 188 if validation.haveAccess(user, m)] 189 #if user == 'moo': 190 # machines = Machine.select() 191 #else: 192 # machines = Machine.query().join('users').filter_by(user=user).all() 189 193 checkpoint.checkpoint('Got my machines') 190 194 on = {}
Note: See TracChangeset
for help on using the changeset viewer.