Rev | Line | |
---|
[59] | 1 | import org.codehaus.groovy.grails.plugins.springsecurity.Secured |
---|
| 2 | |
---|
| 3 | @Secured(['ROLE_USER']) |
---|
| 4 | class 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.