Ignore:
Timestamp:
Jan 25, 2010, 2:14:48 PM (10 years ago)
Author:
gav
Message:

Set base authorisations on all controllers.

File:
1 edited

Legend:

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

    r289 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 @Secured(['ROLE_Manager','ROLE_AppAdmin'])
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    44class SiteDetailedController extends BaseController {
    55
     
    77    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    88
    9     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     9    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1010    def index = { redirect(action:list,params:params) }
    1111
    12     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1313    def list = {
    1414        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1616    }
    1717
    18     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1919    def show = {
    2020        def siteInstance = Site.get( params.id )
Note: See TracChangeset for help on using the changeset viewer.