List all machines in admin mode, even if you can't do anything
authorEvan Broder <broder@mit.edu>
Wed, 12 Nov 2008 11:00:29 +0000 (06:00 -0500)
committerEvan Broder <broder@mit.edu>
Wed, 12 Nov 2008 11:00:29 +0000 (06:00 -0500)
svn path=/trunk/packages/invirt-web/; revision=1624

code/webcommon.py

index 2de6524..b9a6287 100644 (file)
@@ -25,9 +25,7 @@ class State(object):
 
     def getMachines(self):
         if self.isadmin:
-            return Machine.query().join('acl').filter(
-                database.or_(MachineAccess.user==self.username,
-                             Machine.adminable==True))
+            return Machine.query().join('acl').all()
         else:
             return Machine.query().join('acl').filter_by(user=self.username)