Changeset 383 for trunk/grails-app/controllers
- Timestamp:
- Feb 18, 2010, 4:51:45 AM (15 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ManufacturerTypeDetailedController.groovy
r361 r383 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class ManufacturerTypeController extends BaseAppAdminController { 4 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 4 class ManufacturerTypeDetailedController extends BaseController { 5 6 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 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_AssetManager', 'ROLE_AssetUser']) 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_AssetManager', 'ROLE_AssetUser']) 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 manufacturerTypeInstance = ManufacturerType.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 manufacturerTypeInstance = ManufacturerType.get( params.id ) 46 60 -
trunk/grails-app/controllers/SupplierTypeDetailedController.groovy
r361 r383 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class SupplierTypeController extends BaseAppAdminController { 4 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 4 class SupplierTypeDetailedController extends BaseController { 5 6 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 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_AssetManager', 'ROLE_AssetUser']) 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_AssetManager', 'ROLE_AssetUser']) 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 supplierTypeInstance = SupplierType.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 supplierTypeInstance = SupplierType.get( params.id ) 46 60
Note: See TracChangeset
for help on using the changeset viewer.