Ignore:
Timestamp:
Nov 17, 2008, 2:08:04 PM (15 years ago)
Author:
broder
Message:

Default to a NULL administrator, instead of the same as the owner

File:
1 edited

Legend:

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

    r1612 r1709  
    4545        if owner is not None:
    4646            self.owner = owner
    47         admin = testAdmin(username, admin, machine)
    48         if admin is not None:
    49             self.admin = admin
     47        self.admin = testAdmin(username, admin, machine)
    5048        contact = testContact(username, contact, machine)
    5149        if contact is not None:
     
    219217        return None
    220218    if machine is not None and admin == machine.administrator:
    221         return None
     219        return admin
    222220    if admin == user:
    223221        return admin
Note: See TracChangeset for help on using the changeset viewer.