Changeset 1624 for trunk


Ignore:
Timestamp:
Nov 12, 2008, 6:00:29 AM (16 years ago)
Author:
broder
Message:

List all machines in admin mode, even if you can't do anything

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/webcommon.py

    r1612 r1624  
    2626    def getMachines(self):
    2727        if self.isadmin:
    28             return Machine.query().join('acl').filter(
    29                 database.or_(MachineAccess.user==self.username,
    30                              Machine.adminable==True))
     28            return Machine.query().join('acl').all()
    3129        else:
    3230            return Machine.query().join('acl').filter_by(user=self.username)
Note: See TracChangeset for help on using the changeset viewer.