Changeset 17342 for main


Ignore:
Timestamp:
14 Feb 2023, 09:27:44 (23 months ago)
Author:
Henrik Bettermann
Message:

Do not allow students to remove payment tickets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/browser.py

    r15718 r17342  
    2020from zope.schema.interfaces import ConstraintNotSatisfied
    2121from zope.component import getUtility
     22from zope.security import checkPermission
    2223from hurry.workflow.interfaces import IWorkflowInfo
    2324from waeup.kofa.interfaces import REQUESTED, IExtFileStore, IKofaUtils
     
    3031    CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
    3132    ExportPDFTranscriptSlip,
     33    PaymentsManageFormPage,
    3234    msave, emit_lock_message)
    3335from waeup.kofa.students.interfaces import (
     
    4749    ICustomStudentStudyLevel, ICustomStudent)
    4850from kofacustom.edopoly.interfaces import MessageFactory as _
     51
     52class CustomPaymentsManageFormPage(PaymentsManageFormPage):
     53    @property
     54    def manage_payments_allowed(self):
     55        return checkPermission('waeup.manageStudent', self.context)
    4956
    5057class CustomBedTicketAddPage(NigeriaBedTicketAddPage):
Note: See TracChangeset for help on using the changeset viewer.