Ignore:
Timestamp:
16 Jul 2024, 20:47:30 (6 months ago)
Author:
Henrik Bettermann
Message:

Add ExportApplication permission which allows bursary officers
to access the application section and export application data.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
3 edited

Legend:

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

    r17677 r17850  
    18181818    """
    18191819    grok.context(VirtualApplicantsExportJobContainer)
    1820     grok.require('waeup.manageApplication')
     1820    grok.require('waeup.exportApplication')
    18211821    grok.name('index.html')
    18221822    grok.template('exportjobsindex')
     
    18431843    """
    18441844    grok.context(VirtualApplicantsExportJobContainer)
    1845     grok.require('waeup.manageApplication')
     1845    grok.require('waeup.exportApplication')
    18461846    grok.name('start_export')
    18471847
     
    18831883    """
    18841884    grok.context(VirtualApplicantsExportJobContainer)
    1885     grok.require('waeup.manageApplication')
     1885    grok.require('waeup.exportApplication')
    18861886
    18871887class RefereesRemindPage(UtilityView, grok.View):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/permissions.py

    r15085 r17850  
    4545    """
    4646    grok.name('waeup.manageApplication')
     47
     48class ExportApplication(grok.Permission):
     49    """The ExportApplication permission allows to export the data from a
     50    container page.
     51    """
     52    grok.name('waeup.exportApplication')
    4753
    4854class ViewApplicationStatistics(grok.Permission):
     
    102108    grok.permissions('waeup.manageApplication', 'waeup.viewApplication',
    103109                     'waeup.viewApplicantsTab', 'waeup.payApplicant',
    104                      'waeup.viewApplicationStatistics')
     110                     'waeup.viewApplicationStatistics',
     111                     'waeup.exportApplication')
    105112
    106113class StudentsCreator(grok.Role):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py

    r17217 r17850  
    162162    grok.context(IApplicantsContainer)
    163163    grok.view(ApplicantsContainerPage)
    164     grok.require('waeup.manageApplication')
     164    grok.require('waeup.exportApplication')
    165165    icon = 'actionicon_down.png'
    166166    text = _('Export application data')
Note: See TracChangeset for help on using the changeset viewer.