Changeset 254 for trunk/web/validation.py
- Timestamp:
- Dec 29, 2007, 3:09:59 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/validation.py
r253 r254 72 72 def haveAccess(user, machine): 73 73 """Return whether a user has administrative access to a machine""" 74 if user == 'moo':75 return True76 74 if user in (machine.administrator, machine.owner): 77 75 return True … … 85 83 def owns(user, machine): 86 84 """Return whether a user owns a machine""" 87 if user == 'moo':88 return True89 85 return not getafsgroups.notLockerOwner(user, machine.owner) 90 86
Note: See TracChangeset
for help on using the changeset viewer.