Ignore:
Timestamp:
23 Mar 2021, 06:51:01 (4 years ago)
Author:
Henrik Bettermann
Message:

Managers are allowed to view scores.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r16405 r16427  
    513513    grok.template('studylevelpage')
    514514
     515    @property
     516    def view_scores_allowed(self):
     517        return checkPermission('waeup.manageStudent', self.context)
     518
    515519class CustomExportPDFCourseRegistrationSlip(
    516520    ExportPDFCourseRegistrationSlip):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser_templates/studylevelpage.pt

    r14577 r16427  
    2828      <th i18n:translate="">Cred.</th>
    2929      <th i18n:translate="">Requ.</th>
     30      <th tal:condition="view/view_scores_allowed"
     31          i18n:translate="">Score</th>
    3032      <th i18n:translate="">Grade</th>
    3133      <th i18n:translate="">CO</th>
     
    4547      <td tal:content="value/credits">CREDITS</td>
    4648      <td tal:content="value/mandatory">MANDATORY</td>
     49      <td tal:condition="view/view_scores_allowed"
     50          tal:content="value/score|nothing">SCORE</td>
    4751      <td tal:content="value/grade|nothing">GRADE</td>
    4852      <td tal:content="value/carry_over">CO</td>
Note: See TracChangeset for help on using the changeset viewer.