Ignore:
Timestamp:
Aug 4, 2008, 11:20:25 PM (16 years ago)
Author:
price
Message:

rename overlord -> admin mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/validation.py

    r865 r867  
    126126def haveAccess(user, state, machine):
    127127    """Return whether a user has administrative access to a machine"""
    128     return state.overlord or user in cache_acls.accessList(machine)
     128    return state.isadmin or user in cache_acls.accessList(machine)
    129129
    130130def owns(user, machine):
     
    158158                           "Minimum %s MiB" % MIN_MEMORY_SINGLE)
    159159    max_val = maxMemory(owner, g, machine, on)
    160     if not g.overlord and memory > max_val:
     160    if not g.isadmin and memory > max_val:
    161161        raise InvalidInput('memory', memory,
    162162                           'Maximum %s MiB for %s' % (max_val, owner))
     
    167167    try:
    168168        disk = float(disk)
    169         if not g.overlord and disk > maxDisk(owner, machine):
     169        if not g.isadmin and disk > maxDisk(owner, machine):
    170170            raise InvalidInput('disk', disk,
    171171                               "Maximum %s G" % maxDisk(owner, machine))
Note: See TracChangeset for help on using the changeset viewer.