Changeset 7205 for main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
- Timestamp:
- 26 Nov 2011, 06:49:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
r7193 r7205 54 54 grok.name('waeup.manageUsers') 55 55 56 class ShowStudents(grok.Permission): 57 grok.name('waeup.showStudents') 58 56 59 class EditUser(grok.Permission): 57 60 grok.name('waeup.editUser') … … 70 73 grok.name('waeup.local.DepartmentManager') 71 74 grok.title(u'Department Manager') 72 grok.permissions('waeup.manageUniversity' )75 grok.permissions('waeup.manageUniversity','waeup.showStudents') 73 76 74 77 class ClearanceOfficer(grok.Role): … … 78 81 grok.name('waeup.local.ClearanceOfficer') 79 82 grok.title(u'Clearance Officer') 83 grok.permissions('waeup.showStudents') 80 84 81 85 class CourseAdviser(grok.Role): … … 85 89 grok.name('waeup.local.CourseAdviser') 86 90 grok.title(u'Course Adviser') 91 grok.permissions('waeup.showStudents') 87 92 88 93 class Owner(grok.Role): … … 112 117 'waeup.viewStudent', 'waeup.manageStudent', 'clearStudent', 113 118 'waeup.uploadStudentFile', 'waeup.viewStudents', 114 'waeup.viewHostels', 'waeup.manageHostels') 119 'waeup.viewHostels', 'waeup.manageHostels', 120 'waeup.showStudents') 115 121 116 122 def get_all_roles():
Note: See TracChangeset for help on using the changeset viewer.