Changeset 7166


Ignore:
Timestamp:
22 Nov 2011, 14:06:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Define the global Applicant role. Applicants are not regular users even if they have the same permissions as PortalUsers?.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 edited

Legend:

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

    r7145 r7166  
    451451            'waeup.local.ApplicationOwner', self.request.principal.id)
    452452
    453         # Assign current principal the PortalUser role
     453        # Assign current principal the global Applicant role
    454454        role_manager = IPrincipalRoleManager(grok.getSite())
    455455        role_manager.assignRoleToPrincipal(
    456             'waeup.PortalUser', self.request.principal.id)
     456            'waeup.Applicant', self.request.principal.id)
    457457
    458458        # Mark application as started
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/permissions.py

    r7136 r7166  
    4343
    4444# Global role
     45
     46class ApplicantRole(grok.Role):
     47    grok.name('waeup.Applicant')
     48    grok.permissions('waeup.Public', 'waeup.View')
     49
    4550class ApplicationsOfficer(grok.Role):
    4651    grok.name('waeup.ApplicationsOfficer')
Note: See TracChangeset for help on using the changeset viewer.