Changeset 289 for trunk/grails-app/controllers
- Timestamp:
 - Jan 22, 2010, 12:27:04 PM (16 years ago)
 - Location:
 - trunk/grails-app/controllers
 - Files:
 - 
          
- 4 edited
 
- 
          BaseAppAdminController.groovy (modified) (1 diff)
 - 
          BaseController.groovy (modified) (1 diff)
 - 
          SectionDetailedController.groovy (modified) (3 diffs)
 - 
          SiteDetailedController.groovy (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/grails-app/controllers/BaseAppAdminController.groovy
r96 r289 3 3 @Secured(['ROLE_AppAdmin']) 4 4 abstract class BaseAppAdminController { 5 def whatsit() {6 }7 5 8 6 }  - 
        
trunk/grails-app/controllers/BaseController.groovy
r149 r289 3 3 @Secured(['ROLE_AppUser', 'ROLE_AppAdmin']) 4 4 abstract class BaseController { 5 def whatsit() {6 }7 5 8 6 }  - 
        
trunk/grails-app/controllers/SectionDetailedController.groovy
r288 r289 3 3 @Secured(['ROLE_Manager','ROLE_AppAdmin']) 4 4 class SectionDetailedController 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 sectionInstance = Section.get( params.id ) … … 24 27 } 25 28 29 @Secured(['ROLE_AppAdmin']) 26 30 def delete = { 27 31 def sectionInstance = Section.get( params.id )  - 
        
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.
      