Ignore:
Timestamp:
27 Jun 2024, 09:55:33 (5 months ago)
Author:
Henrik Bettermann
Message:

Add permission and role for NYSC Officers.

File:
1 edited

Legend:

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

    r15371 r17824  
    2525    grok.name('waeup.switchLibraryAccess')
    2626
     27class ExportNYSCData(grok.Permission):
     28    """NYSC Officers don't have the general exportData
     29    permission and are only allowed to export NYSC data.
     30    The ExportNYSCData permission is only used to filter the
     31    respective exporter in the ExportJobContainerJobConfig view.
     32    """
     33    grok.name('waeup.exportNYSCData')
     34
    2735class PassportPictureManager(grok.Role):
    2836    grok.name('waeup.PassportPictureManager')
     
    3947                     'waeup.switchLibraryAccess')
    4048
     49class NYSCOfficer(grok.Role):
     50    """NYSC Officers can export NYSC and  data. They can't
     51    access the Data Center but see student data export buttons in the
     52    Academic Section.
     53    """
     54    grok.name('waeup.NYSCOfficer')
     55    grok.title(u'NYSC Officer')
     56    grok.permissions('waeup.showStudents',
     57                     'waeup.viewAcademics',
     58                     'waeup.exportNYSCData',)
     59
    4160class CRPUOfficer(CCOfficer):
    4261    """ Permissions of Uniben CRPU members.
Note: See TracChangeset for help on using the changeset viewer.