Ignore:
Timestamp:
Mar 10, 2009, 3:00:59 AM (15 years ago)
Author:
gav
Message:

Start changing roles to AppAdmin? and AppUser?.
Add Options view, start code for user changeable passwords.
Repair home and admin bean error variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TaskRewrite/src/grails-app/controllers/AppCoreController.groovy

    r69 r71  
    22
    33class AppCoreController extends BaseController {
     4
     5    def authenticateService
    46
    57    def index = { redirect(action:home,params:params) }
     
    1214    }
    1315
    14     @Secured(['ROLE_ADMIN'])   
     16    def options = {
     17        def principal = authenticateService.principal()
     18        println principal.getUsername()//get username
     19        println principal.getAuthorities()//get authorities()
     20    }
     21
     22    @Secured(['ROLE_AppAdmin'])   
    1523    def admin = {
    1624    }
Note: See TracChangeset for help on using the changeset viewer.