Changeset 6127 for main


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

Fix permission requirements for viewlets in LeftSidebar?.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
2 edited

Legend:

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

    r6028 r6127  
    259259    # This link is only displayed, if the user is
    260260    # allowed to use it!
    261     grok.require('waeup.manageUniversity')
     261    grok.require('waeup.managePortalSettings')
    262262
    263263    link = '@@manage'
     
    282282    """
    283283    grok.order(6)
    284     grok.require('waeup.manageUniversity')
     284    grok.require('waeup.manageDataCenter')
    285285
    286286    link = u'datacenter'
     
    571571    """
    572572    grok.order(1)
    573     grok.require('waeup.manageUniversity')
     573    grok.require('waeup.managePortalSettings')
    574574
    575575    link_title = 'Portal Settings'
     
    581581    """
    582582    grok.order(2)
    583     grok.require('waeup.manageUniversity')
     583    grok.require('waeup.manageUsers')
    584584
    585585    link_title = 'Portal Users'
     
    590590    """
    591591    grok.order(3)
    592     grok.require('waeup.manageUniversity')
     592    grok.require('waeup.manageDataCenter')
    593593
    594594    link_title = 'Data Center'
  • 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.