Changeset 371
- Timestamp:
- Feb 17, 2010, 10:53:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/MaintenancePolicyDetailedController.groovy
r363 r371 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_ Manager','ROLE_AppAdmin'])3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 4 4 class MaintenancePolicyDetailedController extends BaseAppAdminController { 5 5 6 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 6 7 def index = { redirect(action:list,params:params) } 7 8 … … 9 10 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 10 11 12 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 11 13 def list = { 12 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 14 16 } 15 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 16 19 def show = { 17 20
Note: See TracChangeset
for help on using the changeset viewer.