Changeset 371 for trunk


Ignore:
Timestamp:
Feb 17, 2010, 10:53:37 PM (15 years ago)
Author:
gav
Message:

Configure security on MaintenancePolicyDetailedController.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/MaintenancePolicyDetailedController.groovy

    r363 r371  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 @Secured(['ROLE_Manager','ROLE_AppAdmin'])
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    44class MaintenancePolicyDetailedController extends BaseAppAdminController {
    5    
     5
     6    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    67    def index = { redirect(action:list,params:params) }
    78
     
    910    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    1011
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1113    def list = {
    1214        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1416    }
    1517
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1619    def show = {
    1720
Note: See TracChangeset for help on using the changeset viewer.