Ignore:
Timestamp:
19 Jul 2020, 20:31:19 (4 years ago)
Author:
Henrik Bettermann
Message:

Add DownloadTranscript permission.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
4 edited

Legend:

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

    r15970 r16170  
    653653        'waeup.exportData',
    654654        'waeup.viewTranscript',
     655        'waeup.downloadTranscript',
    655656        'waeup.processTranscript',
    656657        'waeup.viewDocuments', 'waeup.manageDocuments',
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r16120 r16170  
    14411441    grok.context(IStudentStudyCourse)
    14421442    grok.name('transcript.pdf')
    1443     grok.require('waeup.viewTranscript')
     1443    grok.require('waeup.downloadTranscript')
    14441444    prefix = 'form'
    14451445    omit_fields = (
  • main/waeup.kofa/trunk/src/waeup/kofa/students/permissions.py

    r15606 r16170  
    9494
    9595class ViewTranscript(grok.Permission):
    96     """The ViewTranscript role is needed to view transcript pages and slips.
     96    """The ViewTranscript role is needed to view transcript pages.
    9797    """
    9898    grok.name('waeup.viewTranscript')
     99
     100class DownloadTranscript(grok.Permission):
     101    """The DownloadTranscript role is needed to download transcript slips.
     102    """
     103    grok.name('waeup.downloadTranscript')
    99104
    100105class ProcessTranscript(grok.Permission):
     
    173178    grok.permissions('waeup.viewAcademics',
    174179                     'waeup.viewTranscript',
     180                     'waeup.downloadTranscript',
    175181                     'waeup.processTranscript',
    176182                     'waeup.viewStudent',
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r16120 r16170  
    807807    grok.context(IStudentStudyCourse)
    808808    grok.view(StudyCourseTranscriptPage)
    809     grok.require('waeup.viewTranscript')
     809    grok.require('waeup.downloadTranscript')
    810810    text = _('Academic Transcript')
    811811    target = 'transcript.pdf'
Note: See TracChangeset for help on using the changeset viewer.