Ignore:
Timestamp:
26 Nov 2011, 06:49:16 (13 years ago)
Author:
Henrik Bettermann
Message:

academics: Show students in departments.

students: Search for students in department.

File:
1 edited

Legend:

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

    r7193 r7205  
    5454    grok.name('waeup.manageUsers')
    5555
     56class ShowStudents(grok.Permission):
     57    grok.name('waeup.showStudents')
     58
    5659class EditUser(grok.Permission):
    5760    grok.name('waeup.editUser')
     
    7073    grok.name('waeup.local.DepartmentManager')
    7174    grok.title(u'Department Manager')
    72     grok.permissions('waeup.manageUniversity')
     75    grok.permissions('waeup.manageUniversity','waeup.showStudents')
    7376
    7477class ClearanceOfficer(grok.Role):
     
    7881    grok.name('waeup.local.ClearanceOfficer')
    7982    grok.title(u'Clearance Officer')
     83    grok.permissions('waeup.showStudents')
    8084
    8185class CourseAdviser(grok.Role):
     
    8589    grok.name('waeup.local.CourseAdviser')
    8690    grok.title(u'Course Adviser')
     91    grok.permissions('waeup.showStudents')
    8792
    8893class Owner(grok.Role):
     
    112117                     'waeup.viewStudent', 'waeup.manageStudent', 'clearStudent',
    113118                     'waeup.uploadStudentFile', 'waeup.viewStudents',
    114                      'waeup.viewHostels', 'waeup.manageHostels')
     119                     'waeup.viewHostels', 'waeup.manageHostels',
     120                     'waeup.showStudents')
    115121
    116122def get_all_roles():
Note: See TracChangeset for help on using the changeset viewer.