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

    r226 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
    34class InventoryMovementDetailedController extends BaseController {
    45
    56    def inventoryMovementService
    67
    7     def index = { redirect(action:list,params:params) }
    8 
    98    // the delete, save and update actions only accept POST requests
    109    static allowedMethods = [delete:'POST', save:'POST']
     10
     11    def index = { redirect(action:list,params:params) }
    1112
    1213    def list = {
     
    1516    }
    1617
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1719    def show = {
    1820        def inventoryMovementInstance = InventoryMovement.get( params.id )
     
    2931    * @param params.inventoryItem.id The id of an existing inventory item.
    3032    */
     33    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    3134    def listInventoryMovements = {
    3235        def inventoryItemInstance = InventoryItem.get(params.inventoryItem.id)
Note: See TracChangeset for help on using the changeset viewer.