projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab0c4f8
)
List all machines in admin mode, even if you can't do anything
author
Evan Broder
<broder@mit.edu>
Wed, 12 Nov 2008 11:00:29 +0000
(06:00 -0500)
committer
Evan 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
patch
|
blob
|
history
diff --git
a/code/webcommon.py
b/code/webcommon.py
index
2de6524
..
b9a6287
100644
(file)
--- a/
code/webcommon.py
+++ b/
code/webcommon.py
@@
-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)