Ignore:
Timestamp:
6 Jun 2013, 05:15:00 (11 years ago)
Author:
Henrik Bettermann
Message:

Add local department officer role which is allowed to export payments overviews only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.py

    r10278 r10279  
    7171    grok.name('waeup.exportData')
    7272
     73class ExportPaymentsOverview(grok.Permission):
     74    grok.name('waeup.exportPaymentsOverview')
     75
     76class ExportBursaryData(grok.Permission):
     77    grok.name('waeup.exportBursaryData')
     78
    7379class ViewTranscript(grok.Permission):
    7480    grok.name('waeup.viewTranscript')
     
    9399                     'waeup.exportData')
    94100
     101class DepartmentOfficer(grok.Role):
     102    grok.name('waeup.local.DepartmentOfficer')
     103    grok.title(u'Department Officer')
     104    grok.permissions('waeup.showStudents',
     105                     'waeup.viewAcademics',
     106                     'waeup.exportPaymentsOverview')
     107
    95108class ClearanceOfficer(grok.Role):
    96109    """The clearance officer role is meant for the
     
    255268    grok.name('waeup.BursaryOfficer')
    256269    grok.title(u'Bursary Officer')
    257     grok.permissions('waeup.showStudents', 'waeup.viewAcademics')
     270    grok.permissions('waeup.showStudents',
     271                     'waeup.viewAcademics',
     272                     'waeup.exportBursaryData')
    258273
    259274class TranscriptOfficer(grok.Role):
Note: See TracChangeset for help on using the changeset viewer.