Ignore:
Timestamp:
Apr 14, 2008, 12:44:00 AM (16 years ago)
Author:
ecprice
Message:

Resolve #69, by checking that administrators are either users or
groups in the athena cell.

File:
1 edited

Legend:

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

    r411 r413  
    159159            return admin
    160160        admin = 'system:' + admin
    161     if getafsgroups.checkAfsGroup(user, admin, 'athena.mit.edu'):
    162         return admin
    163     #XXX Should we require that user is in cache_acls.expandName(admin)?
     161    try:
     162        if user in getafsgroups.getAfsGroupMembers(admin, 'athena.mit.edu'):
     163            return admin
     164    except getafsgroups.AfsProcessError, e:
     165        raise InvalidInput('administrator', admin, str(e))
     166    #XXX Should we require that user is in the admin group?
    164167    return admin
    165168   
Note: See TracChangeset for help on using the changeset viewer.