Ignore:
Timestamp:
9 Sep 2018, 10:36:38 (6 years ago)
Author:
Henrik Bettermann
Message:

Add ne permissions and roles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/permissions.py

    r13762 r15134  
    9292    """
    9393    grok.name('waeup.loginAsStudent')
     94
     95class ViewTranscript(grok.Permission):
     96    """The ViewTranscript role is needed to view transcript pages and slips.
     97    """
     98    grok.name('waeup.viewTranscript')
     99
     100class ProcessTranscript(grok.Permission):
     101    grok.name('waeup.processTranscript')
     102    """The ProcessTranscript role is needed to validate and relase transcripts.
     103    """
     104
     105class SignTranscript(grok.Permission):
     106    grok.name('waeup.signTranscript')
     107    """The ViewTranscript role is needed to sign transcripts.
     108    """
    94109
    95110# Local role
     
    142157
    143158class TranscriptOfficer(grok.Role):
     159    """The Transcript Officer is allowed to view, to validate and to
     160    release student transcripts.
     161    """
    144162    grok.name('waeup.TranscriptOfficer')
    145163    grok.title(u'Transcript Officer')
    146164    grok.permissions('waeup.viewAcademics',
    147165                     'waeup.viewTranscript',
     166                     'waeup.processTranscript',
     167                     'waeup.viewStudent',
     168                     'waeup.viewStudentsContainer',
     169                     )
     170
     171class TranscriptSignee(grok.Role):
     172    """The Transcript Signee is allowed to view and to sign student
     173    transcripts.
     174    """
     175    grok.name('waeup.TranscriptSignee')
     176    grok.title(u'Transcript Signee')
     177    grok.permissions('waeup.viewAcademics',
     178                     'waeup.viewTranscript',
     179                     'waeup.signTranscript',
    148180                     'waeup.viewStudent',
    149181                     'waeup.viewStudentsContainer',
Note: See TracChangeset for help on using the changeset viewer.