- 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()