- Timestamp:
- Jan 25, 2010, 2:14:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r226 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager']) 3 4 class InventoryItemDetailedController extends BaseController { 4 5 … … 7 8 def inventoryMovementService 8 9 9 def index = { redirect(action:search, params:params) }10 11 10 // the delete, save and update actions only accept POST requests 12 11 static allowedMethods = [delete:'POST', save:'POST', update:'POST', useInventoryItem:'POST'] 13 12 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']) 14 17 def list = { 15 18 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 17 20 } 18 21 22 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 19 23 def search = { 20 24 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 34 38 * Simply assigns a passed in task id to a session variable and redirects to search. 35 39 */ 40 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 36 41 def findInventoryItemForMovement = { 37 42 if(!params.task?.id) { … … 46 51 } 47 52 53 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 48 54 def show = { 49 55 … … 164 170 * Handles the use inventory item form submit in the show view. 165 171 */ 172 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 166 173 def useInventoryItem = { 167 174
Note: See TracChangeset
for help on using the changeset viewer.