Ignore:
Timestamp:
Feb 18, 2010, 3:09:18 AM (14 years ago)
Author:
gav
Message:

Svn move InventoryLocation and InventoryStore controllers and views to detailed and complete detailing.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/InventoryStoreDetailedController.groovy

    r361 r377  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class InventoryStoreController extends BaseAppAdminController {
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
     4class InventoryStoreDetailedController extends BaseController {
    45   
     6    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    57    def index = { redirect(action:list,params:params) }
    68
     
    1315    }
    1416
     17    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1518    def show = {
     19
     20        // In the case of an actionSubmit button, rewrite action name from 'index'.
     21        if(params._action_Show)
     22            params.action='show'
     23
    1624        def inventoryStoreInstance = InventoryStore.get( params.id )
    1725
     
    4351
    4452    def edit = {
     53
     54        // In the case of an actionSubmit button, rewrite action name from 'index'.
     55        if(params._action_Edit)
     56            params.action='edit'
     57
    4558        def inventoryStoreInstance = InventoryStore.get( params.id )
    4659
Note: See TracChangeset for help on using the changeset viewer.