source: branches/TaskRewrite/src/grails-app/controllers/AppCoreController.groovy @ 59

Last change on this file since 59 was 59, checked in by gav, 15 years ago

Lots of changes to setup Acegi, should be complete with all current pages secured.
Added CSS and PersonGroup? and PersonGroupType?.
Adjust BootStrap? to suite.
Add Home and Admin pages.

File size: 617 bytes
Line 
1import org.codehaus.groovy.grails.plugins.springsecurity.Secured
2
3@Secured(['ROLE_USER'])
4class AppCoreController extends BaseController {
5
6    def index = { redirect(action:home,params:params) }
7
8    // the delete, save and update actions only accept POST requests
9    //def allowedMethods = [delete:'POST', save:'POST', update:'POST']
10
11
12    def home = {
13        //if(!params.max) params.max = 10
14        //[ personInstanceList: Person.list( params ) ]
15    }
16
17    @Secured(['ROLE_ADMIN'])   
18    def admin = {
19        //if(!params.max) params.max = 10
20        //[ personInstanceList: Person.list( params ) ]
21    }
22
23}
Note: See TracBrowser for help on using the repository browser.