Changeset 6127
- Timestamp:
- 18 May 2011, 15:58:28 (14 years ago)
- 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 259 259 # This link is only displayed, if the user is 260 260 # allowed to use it! 261 grok.require('waeup.manage University')261 grok.require('waeup.managePortalSettings') 262 262 263 263 link = '@@manage' … … 282 282 """ 283 283 grok.order(6) 284 grok.require('waeup.manage University')284 grok.require('waeup.manageDataCenter') 285 285 286 286 link = u'datacenter' … … 571 571 """ 572 572 grok.order(1) 573 grok.require('waeup.manage University')573 grok.require('waeup.managePortalSettings') 574 574 575 575 link_title = 'Portal Settings' … … 581 581 """ 582 582 grok.order(2) 583 grok.require('waeup.manageU niversity')583 grok.require('waeup.manageUsers') 584 584 585 585 link_title = 'Portal Users' … … 590 590 """ 591 591 grok.order(3) 592 grok.require('waeup.manage University')592 grok.require('waeup.manageDataCenter') 593 593 594 594 link_title = 'Data Center' -
main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
r6125 r6127 27 27 class ManageUsers(grok.Permission): 28 28 grok.name('waeup.manageUsers') 29 30 class ManageDataCenter(grok.Permission): 31 grok.name('waeup.manageDataCenter') 32 33 class ManagePortalSettings(grok.Permission): 34 grok.name('waeup.managePortalSettings') 29 35 30 36 # Local Roles 31 37 class DepartmentOfficer(grok.Role): 32 grok.name('waeup.local.Department Manager')33 grok.permissions('waeup.manageUniversity' )38 grok.name('waeup.local.DepartmentOfficer') 39 grok.permissions('waeup.manageUniversity','waeup.View', 'waeup.Public') 34 40 35 41 # Global Roles … … 41 47 grok.name('waeup.PortalManager') 42 48 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') 44 51 45 52 def getRoles():
Note: See TracChangeset for help on using the changeset viewer.