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/AssetSubItemDetailedController.groovy

    r285 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    34class AssetSubItemDetailedController extends BaseController {
    45
    56    def assetSubItemService
    67
    7     def index = { redirect(controller: "assetDetailed", params:params) }
    8 
    98    // the delete, save and update actions only accept POST requests
    109    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    1110
     11    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
     12    def index = { redirect(controller: "assetDetailed", params:params) }
     13
     14    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1215    def show = {
    1316        def assetSubItemInstance = AssetSubItem.get( params.id )
Note: See TracChangeset for help on using the changeset viewer.