Ignore:
Timestamp:
12 Dec 2011, 14:11:21 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement local CourseAdviser? roles. These roles can be assigned in departments and certificates. There are 6 different roles, one for each study level. getRolesForPrincipal grants the additional waeup.StudentsCourseAdviser? role only if the current level of a student corresponds with the level number in the external role name.

To do: Assign local roles on CertificateManageFormPage?. Add browser tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py

    r7240 r7334  
    5353    grok.name('waeup.clearStudent')
    5454
     55class ValidateStudent(grok.Permission):
     56    grok.name('waeup.validateStudent')
     57
    5558# Local role
    5659class StudentRecordOwner(grok.Role):
     
    8386    grok.title(u'Clearance Officer (all students)')
    8487    grok.permissions('waeup.clearStudent','waeup.viewStudent')
     88
     89class StudentsCourseAdviser(grok.Role):
     90    grok.name('waeup.StudentsCourseAdviser')
     91    grok.title(u'Course Adviser (all students)')
     92    grok.permissions('waeup.validateStudent','waeup.viewStudent')
Note: See TracChangeset for help on using the changeset viewer.