Ignore:
Timestamp:
24 Nov 2021, 06:52:16 (3 years ago)
Author:
Henrik Bettermann
Message:

Disable payment ticket deletion option for applicants and students.

File:
1 edited

Legend:

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

    r16717 r16718  
    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
     
    2930    StudentBasePDFFormPage, ExportPDFCourseRegistrationSlip,
    3031    CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
    31     msave, emit_lock_message)
     32    PaymentsManageFormPage, msave, emit_lock_message)
    3233from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket
    3334from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS
     
    4647from kofacustom.skeleton.interfaces import MessageFactory as _
    4748
     49class CustomPaymentsManageFormPage(PaymentsManageFormPage):
     50    """ Page to manage the student payments. This manage form page is for
     51    both students and students officers. SKELETON does not allow students
     52    to remove any payment ticket.
     53    """
     54    @property
     55    def manage_payments_allowed(self):
     56        return checkPermission('waeup.manageStudent', self.context)
Note: See TracChangeset for help on using the changeset viewer.