Changeset 6394 for main


Ignore:
Timestamp:
16 Jun 2011, 21:53:20 (14 years ago)
Author:
uli
Message:

* empty log message *

File:
1 edited

Legend:

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

    r6390 r6394  
    434434
    435435        role_manager = IPrincipalRoleManager(self.context[pin])
    436         roles = role_manager.getRolesForPrincipal(self.request.principal.id)
    437         if not 'waeup.local.ApplicationOwner' in map(lambda x, y: x, roles):
    438             # Assign current principal the owner role on created applicant
    439             # record
    440             role_manager.assignRoleToPrincipal(
    441                 'waeup.local.ApplicationOwner', self.request.principal.id)
    442 
    443             # Assign current principal the PortalUser role
    444             role_manager = IPrincipalRoleManager(grok.getSite()['faculties'])
    445             role_manager.assignRoleToPrincipal(
    446                 'waeup.PortalUser', self.request.principal.id)
     436        role_manager.assignRoleToPrincipal(
     437            'waeup.local.ApplicationOwner', self.request.principal.id)
     438
     439        # Assign current principal the PortalUser role
     440        role_manager = IPrincipalRoleManager(grok.getSite()['faculties'])
     441        role_manager.assignRoleToPrincipal(
     442            'waeup.PortalUser', self.request.principal.id)
    447443
    448444        # Mark application as started
Note: See TracChangeset for help on using the changeset viewer.