Ignore:
Timestamp:
6 May 2012, 11:19:38 (13 years ago)
Author:
Henrik Bettermann
Message:

Add more roles and reorganize permissions.

Remove grok.require('waeup.manageUniversity') from grok.Container classes.

File:
1 edited

Legend:

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

    r7334 r8367  
    6262    grok.permissions('waeup.handleStudent', 'waeup.uploadStudentFile',
    6363                     'waeup.viewStudent', 'waeup.payStudent',
    64                      'waeup.handleAccommodation', 'waeup.Authenticated')
     64                     'waeup.handleAccommodation')
    6565
    6666# Site Roles
    6767class StudentRole(grok.Role):
    6868    grok.name('waeup.Student')
    69     grok.permissions('waeup.viewAcademics', 'waeup.viewMyStudentDataTab')
     69    grok.permissions('waeup.viewAcademics', 'waeup.viewMyStudentDataTab',
     70                     'waeup.Authenticated')
    7071
    7172class StudentsOfficer(grok.Role):
     
    7879    grok.name('waeup.StudentsManager')
    7980    grok.title(u'Students Manager')
    80     grok.permissions('waeup.viewStudent', 'waeup.manageStudent',
     81    grok.permissions('waeup.viewStudent', 'waeup.viewStudents',
     82                     'waeup.manageStudent', 'waeup.viewStudentsContainer',
    8183                     'waeup.payStudent', 'waeup.uploadStudentFile',
    82                      'waeup.handleAccommodation', 'waeup.viewStudents')
     84                     'waeup.viewStudentsTab', 'waeup.handleAccommodation')
    8385
    8486class StudentsClearanceOfficer(grok.Role):
Note: See TracChangeset for help on using the changeset viewer.