Ignore:
Timestamp:
19 Nov 2021, 11:06:11 (3 years ago)
Author:
Henrik Bettermann
Message:

EDOCONS does not allow students to remove any payment ticket.

File:
1 edited

Legend:

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

    r16712 r16715  
    2121from zope.schema.interfaces import ConstraintNotSatisfied
    2222from zope.component import getUtility
     23from zope.security import checkPermission
    2324from hurry.workflow.interfaces import IWorkflowInfo
    2425from waeup.kofa.interfaces import REQUESTED, IExtFileStore, IKofaUtils
     
    3031    StudentBasePDFFormPage, ExportPDFCourseRegistrationSlip,
    3132    CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
    32     ExportPDFAdmissionSlip, StartClearancePage,
     33    ExportPDFAdmissionSlip, StartClearancePage, PaymentsManageFormPage,
    3334    msave, emit_lock_message)
    3435from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket
     
    99100        'flash_notice', 'certificate', 'faculty', 'parents_email')
    100101
     102class CustomPaymentsManageFormPage(PaymentsManageFormPage):
     103    """ Page to manage the student payments. This manage form page is for
     104    both students and students officers. EDOCONS does not allow students
     105    to remove any payment ticket.
     106    """
     107    @property
     108    def manage_payments_allowed(self):
     109        return checkPermission('waeup.manageStudent', self.context)
     110
Note: See TracChangeset for help on using the changeset viewer.