Ignore:
Timestamp:
8 Mar 2009, 08:25:54 (16 years ago)
Author:
Henrik Bettermann
Message:

resolve ticket aaue #16

Enable assigment of clearance officer role on certificate level. Do not show local roles on search student page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/patches/PatchCPSUserFolderUserFolder.py

    r3903 r4006  
    126126            allowed = set(('CourseAdviser', 'SectionManager'))
    127127        else:
    128             res = self.portal_catalog(portal_type="Department",id=st_entry.department)
    129128            allowed = set(('ClearanceOfficer', 'SectionManager'))
    130             if len(res) != 1:
    131                 break
    132             context_obj = res[0].getObject()
     129            context_obj = getCertificateObject(self,st_entry)
     130            if context_obj is None:
     131                break   
     132            #res = self.portal_catalog(portal_type="Department",id=st_entry.department)
     133            #if len(res) != 1:
     134            #    break
     135            #context_obj = res[0].getObject()
    133136        dynamic_roles = set(self.getRolesInContext(context_obj))
    134137        intersect = dynamic_roles & allowed
Note: See TracChangeset for help on using the changeset viewer.