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

Last change on this file since 69 was 69, checked in by gav, 11 years ago

Add TaskPriority? and TaskType? domains, generate views and controllers.
Tweak security extensively.
Use 'extend BaseController?' to pass ROLE_USER to most controllers.
Add parentTask and subTask to Task Domain.

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