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

    r226 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
    34class InventoryItemDetailedController extends BaseController {
    45
     
    78    def inventoryMovementService
    89
    9     def index = { redirect(action:search, params:params) }
    10 
    1110    // the delete, save and update actions only accept POST requests
    1211    static allowedMethods = [delete:'POST', save:'POST', update:'POST', useInventoryItem:'POST']
    1312
     13    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
     14    def index = { redirect(action:search, params:params) }
     15
     16    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1417    def list = {
    1518        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1720    }
    1821
     22    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1923    def search = {
    2024        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    3438    * Simply assigns a passed in task id to a session variable and redirects to search.
    3539    */
     40    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    3641    def findInventoryItemForMovement = {
    3742        if(!params.task?.id) {
     
    4651    }
    4752
     53    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    4854    def show = {
    4955
     
    164170    * Handles the use inventory item form submit in the show view.
    165171    */
     172    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    166173    def useInventoryItem = {
    167174
Note: See TracChangeset for help on using the changeset viewer.