X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/a68b7d4c62a3d9025d4f3e3675fe8360b0a827fb..2c2a6440b71e26d6921924d3b840e1c35f5e2079:/code/webcommon.py?ds=inline diff --git a/code/webcommon.py b/code/webcommon.py index 9052a4e..0e3fd1d 100644 --- a/code/webcommon.py +++ b/code/webcommon.py @@ -45,9 +45,9 @@ class State(object): def getMachines(self): if self.isadmin: - return Machine.query().join('acl').filter_by( - database.or_(MachineAccess.c.user == self.username, - Machine.c.adminable == True)) + return Machine.query().join('acl').filter( + database.or_(MachineAccess.user==self.username, + Machine.adminable==True)) else: return Machine.query().join('acl').filter_by(user=self.username)