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/students
Files:
3 edited

Legend:

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