Ignore:
Timestamp:
10 Jun 2011, 09:11:13 (14 years ago)
Author:
Henrik Bettermann
Message:

Assign current applicant principal the PortalUser? role for the academic section to view his/her certificate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r6324 r6325  
    416416        role_manager.assignRoleToPrincipal(
    417417            'waeup.local.ApplicationOwner', self.request.principal.id)
     418        # Assign current principal the PortalUser role
     419        role_manager = IPrincipalRoleManager(grok.getSite()['faculties'])
     420        role_manager.assignRoleToPrincipal(
     421            'waeup.PortalUser', self.request.principal.id)
    418422        state = IWorkflowState(self.context[pin]).getState()
    419423        if state == INITIALIZED:
Note: See TracChangeset for help on using the changeset viewer.