Ignore:
Timestamp:
12 Aug 2013, 15:45:20 (11 years ago)
Author:
Henrik Bettermann
Message:

Enable transcript only for 'admin', 'isouaba', 'niyi', 'delejason'.

File:
1 edited

Legend:

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

    r10425 r10488  
    2424from waeup.kofa.students.student import StudentFactory
    2525from waeup.kofa.students.interfaces import IStudentNavigation
     26from waeup.kofa.utils.helpers import get_current_principal
    2627from kofacustom.nigeria.students.student import NigeriaStudent
    2728from waeup.uniben.students.interfaces import ICustomStudent
     
    3738    @property
    3839    def transcript_enabled(self):
    39         return True
     40        user = get_current_principal()
     41        if user.id in ('admin', 'isouaba', 'niyi', 'delejason'):
     42            return True
     43        return False
    4044
    4145
Note: See TracChangeset for help on using the changeset viewer.