Changeset 16170


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

Add DownloadTranscript permission.

Location:
main/waeup.kofa/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r16169 r16170  
    441.6.1.dev0 (unreleased)
    55=======================
     6
     7* Add `DownloadTranscript` permission.
    68
    79* Implement webservice `get_unpaid_payments`.
  • main/waeup.kofa/trunk/docs/source/userdocs/security.rst

    r15968 r16170  
    164164   :noindex:
    165165
     166.. autoclass:: waeup.kofa.students.permissions.ViewTranscript()
     167   :noindex:
     168
     169.. autoclass:: waeup.kofa.students.permissions.DownloadTranscript()
     170   :noindex:
     171
     172.. autoclass:: waeup.kofa.students.permissions.ProcessTranscript()
     173   :noindex:
     174
     175.. autoclass:: waeup.kofa.students.permissions.SignTranscript()
     176   :noindex:
     177
    166178Global Roles
    167179============
  • 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.