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

Set base authorisations on all controllers.

File:
1 edited

Legend:

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

    r269 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    34class MaintenanceActionDetailedController extends BaseController {
    4    
    5     def index = { redirect(action:list,params:params) }
    65
    76    // the delete, save and update actions only accept POST requests
    87    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    98
     9    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
     10    def index = { redirect(action:list,params:params) }
     11
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1013    def list = {
    1114        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1316    }
    1417
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1519    def show = {
    1620        def maintenanceActionInstance = MaintenanceAction.get( params.id )
Note: See TracChangeset for help on using the changeset viewer.