Changeset 627 for trunk/grails-app
- Timestamp:
- Jul 14, 2010, 10:46:04 AM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Config.groovy
r622 r627 181 181 subItems: [ 182 182 [order:10, controller:'appCore', title:'Start', action:'start', isVisible: { true }], 183 [order:20, controller:'appCore', title:'Manager', action:'manager', isVisible: { authenticateService.ifAnyGranted('ROLE_Manager,ROLE_AppAdmin') }], 183 [order:20, controller:'appCore', title:'Manager', action:'manager', isVisible: { 184 authenticateService.ifAnyGranted('ROLE_AppAdmin,ROLE_Manager,ROLE_TaskManager,ROLE_InventoryManager,ROLE_AssetManager,ROLE_ProductionManager') 185 } 186 ], 184 187 [order:30, controller:'appCore', title:'Admin', action:'appAdmin', isVisible: { authenticateService.ifAllGranted('ROLE_AppAdmin') }], 185 188 [order:90, controller:'appCore', title:'Timeout', action:'changeSessionTimeout', isVisible: { params.action == 'changeSessionTimeout' }], -
trunk/grails-app/controllers/AppCoreController.groovy
r622 r627 132 132 * Render the manager view for manager or admin roles. 133 133 */ 134 @Secured(['ROLE_AppAdmin', 'ROLE_Manager']) 134 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 135 'ROLE_InventoryManager', 'ROLE_AssetManager', 'ROLE_ProductionManager']) 135 136 def manager = { 136 137 } … … 244 245 * Render the application log file. 245 246 */ 246 @Secured(['ROLE_AppAdmin', 'ROLE_Manager']) 247 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 248 'ROLE_InventoryManager', 'ROLE_AssetManager', 'ROLE_ProductionManager']) 247 249 def appLog = { 248 250 def file = new File(ConfigurationHolder.config.log4j.appenders.appLog.file) … … 255 257 * Rebuild the text search index. 256 258 */ 257 @Secured(['ROLE_AppAdmin', 'ROLE_Manager']) 259 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 260 'ROLE_InventoryManager', 'ROLE_AssetManager', 'ROLE_ProductionManager']) 258 261 def rebuildTextSearchIndex = { 259 262 InventoryIndexJob.triggerNow(['calledBy':'AppCoreController rebuildTextSearchIndex{}'])
Note: See TracChangeset
for help on using the changeset viewer.