Changeset 380 for trunk/grails-app/controllers
- Timestamp:
- Feb 18, 2010, 3:42:40 AM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryGroupDetailedController.groovy
r361 r380 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class InventoryGroupController extends BaseAppAdminController { 4 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager']) 4 class InventoryGroupDetailedController extends BaseController { 5 6 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 5 7 def index = { redirect(action:list,params:params) } 6 8 … … 8 10 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 9 11 12 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 10 13 def list = { 11 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 13 16 } 14 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 15 19 def show = { 20 21 // In the case of an actionSubmit button, rewrite action name from 'index'. 22 if(params._action_Show) 23 params.action='show' 24 16 25 def inventoryGroupInstance = InventoryGroup.get( params.id ) 17 26 … … 43 52 44 53 def edit = { 54 55 // In the case of an actionSubmit button, rewrite action name from 'index'. 56 if(params._action_Edit) 57 params.action='edit' 58 45 59 def inventoryGroupInstance = InventoryGroup.get( params.id ) 46 60
Note: See TracChangeset
for help on using the changeset viewer.