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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.