Ignore:
Timestamp:
26 Mar 2022, 08:10:17 (3 years ago)
Author:
Henrik Bettermann
Message:

Disable trascript views for students.

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

Legend:

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

    r16906 r16908  
    3838        if self.view and self.view.__name__ == 'transcript.pdf':
    3939            usertype = getattr(self.view.request.principal, 'user_type', None)
    40             if usertype and usertype == 'student':
     40            #if usertype and usertype == 'student':
     41            if True:
    4142                self.watermark_pos = [95, 190]
    4243                return os.path.join(
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r16906 r16908  
    708708    """ Page to display the student's transcript.
    709709    """
    710     grok.require('waeup.viewStudent')
     710#    grok.require('waeup.viewStudent')
    711711
    712712class CustomExportPDFTranscriptSlip(ExportPDFTranscriptSlip):
    713713    """Deliver a PDF slip of the context.
    714714    """
    715     grok.require('waeup.viewStudent')
     715#    grok.require('waeup.viewStudent')
    716716
    717717    def _sigsInFooter(self):
Note: See TracChangeset for help on using the changeset viewer.