Changeset 246 for trunk


Ignore:
Timestamp:
Nov 13, 2007, 8:18:32 PM (17 years ago)
Author:
ecprice
Message:

Revert to old list method until we start updating the cache.
Fix a bug in getafsgroups.

Location:
trunk/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/getafsgroups.py

    r236 r246  
    7777
    7878    for entry in values:
    79         if entry[0] == user or (entry[0][0:6] == "system" and
    80                                 checkAfsGroup(user, entry[0], cell)):
     79        if entry == user or (entry[0:6] == "system" and
     80                                checkAfsGroup(user, entry, cell)):
    8181            return False
    8282    return "You don't have admin bits on /mit/" + locker
  • trunk/web/main.py

    r243 r246  
    185185
    186186def getListDict(user):
    187     machines = [m for m in Machine.select()
    188                 if validation.haveAccess(user, m)]   
     187    machines = [m for m in Machine.select()
     188                if validation.haveAccess(user, m)]
     189    #if user == 'moo':
     190    #    machines = Machine.select()
     191    #else:
     192    #    machines = Machine.query().join('users').filter_by(user=user).all()
    189193    checkpoint.checkpoint('Got my machines')
    190194    on = {}
Note: See TracChangeset for help on using the changeset viewer.