Ignore:
Timestamp:
18 May 2011, 15:58:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix permission requirements for viewlets in LeftSidebar?.

File:
1 edited

Legend:

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

    r6125 r6127  
    2727class ManageUsers(grok.Permission):
    2828    grok.name('waeup.manageUsers')
     29   
     30class ManageDataCenter(grok.Permission):
     31    grok.name('waeup.manageDataCenter')
     32   
     33class ManagePortalSettings(grok.Permission):
     34    grok.name('waeup.managePortalSettings')
    2935
    3036# Local Roles
    3137class DepartmentOfficer(grok.Role):
    32     grok.name('waeup.local.DepartmentManager')
    33     grok.permissions('waeup.manageUniversity')
     38    grok.name('waeup.local.DepartmentOfficer')
     39    grok.permissions('waeup.manageUniversity','waeup.View', 'waeup.Public')
    3440   
    3541# Global Roles
     
    4147    grok.name('waeup.PortalManager')
    4248    grok.permissions('waeup.manageUniversity', 'waeup.manageUsers',
    43                      'waeup.View', 'waeup.Public','waeup.manageACBatches')
     49                     'waeup.View', 'waeup.Public','waeup.manageACBatches',
     50                     'waeup.manageDataCenter','waeup.managePortalSettings')
    4451
    4552def getRoles():
Note: See TracChangeset for help on using the changeset viewer.