Ignore:
Timestamp:
Nov 12, 2007, 3:44:12 AM (16 years ago)
Author:
ecprice
Message:

Now ignore negative rights, rather than treat them as positive.

Also, rearrange and clean up code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/validation.py

    r229 r234  
    7676                                  'athena.mit.edu'): #XXX Cell?
    7777        return True
    78     if getafsgroups.checkLockerOwner(user, machine.owner):
     78    if not getafsgroups.notLockerOwner(user, machine.owner):
    7979        return True
    8080    return owns(user, machine)
     
    8484    if user == 'moo':
    8585        return True
    86     return getafsgroups.checkLockerOwner(user, machine.owner)
     86    return not getafsgroups.notLockerOwner(user, machine.owner)
    8787
    8888def validMachineName(name):
     
    169169    if owner is None:
    170170        raise InvalidInput('owner', owner, "Owner must be specified")
    171     value = getafsgroups.checkLockerOwner(user, owner, verbose=True)
     171    value = getafsgroups.notLockerOwner(user, owner)
    172172    if not value:
    173173        return owner
Note: See TracChangeset for help on using the changeset viewer.