def haveAccess(user, state, machine):
"""Return whether a user has administrative access to a machine"""
- return state.isadmin or user in cache_acls.accessList(machine)
+ return (user in cache_acls.accessList(machine)
+ or (machine.adminable and state.isadmin))
def owns(user, machine):
"""Return whether a user owns a machine"""