Ignore:
Timestamp:
30 Aug 2011, 05:43:06 (13 years ago)
Author:
Henrik Bettermann
Message:

The student section gets its own permissions module. Define new local and global roles (Students Officer, Clearance Officer & Course Adviser).

File:
1 edited

Legend:

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

    r6622 r6655  
    3737    grok.name('waeup.managePortalSettings')
    3838
    39 class ViewStudents(grok.Permission):
    40     grok.name('waeup.viewStudents')
    41 
    42 class ManageStudents(grok.Permission):
    43     grok.name('waeup.manageStudents')
    44 
    4539# Local Roles
    4640class DepartmentOfficer(grok.Role):
     
    4842    grok.title(u'Department Officer')
    4943    grok.permissions('waeup.manageUniversity','waeup.View', 'waeup.Public')
     44
     45class ClearanceOfficer(grok.Role):
     46    grok.name('waeup.local.ClearanceOfficer')
     47    grok.title(u'Clearance Officer')
     48    # to be further defined
     49    grok.permissions('waeup.View', 'waeup.Public')
     50
     51class CourseAdviser(grok.Role):
     52    grok.name('waeup.local.CourseAdviser')
     53    grok.title(u'Course Adviser')
     54    # to be further defined
     55    grok.permissions('waeup.View', 'waeup.Public')
    5056
    5157# Global Roles
Note: See TracChangeset for help on using the changeset viewer.