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

Set base authorisations on all controllers.

File:
1 edited

Legend:

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

    r178 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
    34class InventoryLocationDetailedController 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_InventoryManager', 'ROLE_InventoryUser'])
     10    def index = { redirect(action:list,params:params) }
     11
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1013    def list = {
    1114        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1316    }
    1417
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1519    def show = {
    1620        def inventoryLocationInstance = InventoryLocation.get( params.id )
Note: See TracChangeset for help on using the changeset viewer.