- Timestamp:
- Jan 22, 2010, 12:27:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/SiteDetailedController.groovy
r288 r289 3 3 @Secured(['ROLE_Manager','ROLE_AppAdmin']) 4 4 class SiteDetailedController extends BaseController { 5 6 def index = { redirect(action:list,params:params) }7 5 8 6 // the delete, save and update actions only accept POST requests 9 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 10 8 9 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 10 def index = { redirect(action:list,params:params) } 11 12 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 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_AppUser']) 16 19 def show = { 17 20 def siteInstance = Site.get( params.id ) … … 24 27 } 25 28 29 @Secured(['ROLE_AppAdmin']) 26 30 def delete = { 27 31 def siteInstance = Site.get( params.id )
Note: See TracChangeset
for help on using the changeset viewer.