Changeset 7154


Ignore:
Timestamp:
20 Nov 2011, 11:35:38 (13 years ago)
Author:
Henrik Bettermann
Message:

Be prepared for Clearance Officer pages which will require waeup.clearStudent permission. Clearance Officers have to be assigned the global StudentsOfficer? role and the local waeup.local.ClearanceOfficer? role in their faculty or department respectively. Do not assign the global StudentsClearanceOfficer? role.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/permissions.txt

    r6960 r7154  
    3939    >>> from waeup.sirp.permissions import getWAeUPRoles
    4040    >>> len(list(getWAeUPRoles()))
    41     6
     41    8
    4242
    4343    >>> len(list(getWAeUPRoles(also_local=True)))
    44     11
     44    13
    4545
    4646
     
    5353    >>> from waeup.sirp.permissions import getWAeUPRoleNames
    5454    >>> list(getWAeUPRoleNames())
    55     [u'waeup.AccommodationOfficer', u'waeup.ApplicationsOfficer', u'waeup.PortalManager',
    56      u'waeup.PortalUser', u'waeup.Student', u'waeup.StudentsOfficer']
     55    [u'waeup.AccommodationOfficer', u'waeup.ApplicationsOfficer',
     56     u'waeup.PortalManager', u'waeup.PortalUser', u'waeup.Student',
     57     u'waeup.StudentsClearanceOfficer', u'waeup.StudentsManager',
     58     u'waeup.StudentsOfficer']
    5759
    5860:func:`get_users_with_local_roles`
  • main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py

    r7136 r7154  
    5353class StudentsOfficer(grok.Role):
    5454    grok.name('waeup.StudentsOfficer')
    55     grok.title(u'Students Officer')
     55    grok.title(u'Students Officer (view only)')
     56    grok.permissions('waeup.View', 'waeup.Public',
     57                     'waeup.viewStudent',)
     58
     59class StudentsManager(grok.Role):
     60    grok.name('waeup.StudentsManager')
     61    grok.title(u'Students Manager')
    5662    grok.permissions('waeup.View', 'waeup.Public',
    5763                     'waeup.viewStudent', 'waeup.manageStudent',
    5864                     'waeup.payStudent', 'waeup.uploadStudentFile')
     65
     66class StudentsClearanceOfficer(grok.Role):
     67    grok.name('waeup.StudentsClearanceOfficer')
     68    grok.title(u'Clearance Officer (all students)')
     69    grok.permissions('waeup.View', 'waeup.Public', 'waeup.clearStudent')
Note: See TracChangeset for help on using the changeset viewer.