- Timestamp:
- Jan 25, 2010, 2:14:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/MaintenanceActionDetailedController.groovy
r269 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 3 4 class MaintenanceActionDetailedController extends BaseController { 4 5 def index = { redirect(action:list,params:params) }6 5 7 6 // the delete, save and update actions only accept POST requests 8 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 9 8 9 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 10 def index = { redirect(action:list,params:params) } 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 = { 16 20 def maintenanceActionInstance = MaintenanceAction.get( params.id )
Note: See TracChangeset
for help on using the changeset viewer.