Ignore:
Timestamp:
Dec 4, 2009, 2:05:27 PM (14 years ago)
Author:
gav
Message:

Replace personService.currentUser() with the more groovy personService.getCurrentUser() so that personService.currentUser can be called.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AppCoreController.groovy

    r185 r216  
    1717    */
    1818    def welcome = {
    19         def personInstance = personService.currentUser()
     19        def personInstance = personService.currentUser
    2020        flash.message = "Welcome, ${personInstance.firstName} ${personInstance.lastName}."
    2121
     
    3030    def changeSessionTimeout = {
    3131        if (request.method == 'GET') {
    32             def personInstance = personService.currentUser()
     32            def personInstance = personService.currentUser
    3333            return [ personInstance : personInstance ]       
    3434        }
    3535        if (request.method == 'POST') {
    36             def personInstance = personService.currentUser()
     36            def personInstance = personService.currentUser
    3737                personInstance.properties = params
    3838                if (!personInstance.hasErrors() && personInstance.save(flush: true)) {
     
    5353
    5454        if (request.method == 'GET') {
    55             def personInstance = personService.currentUser()
     55            def personInstance = personService.currentUser
    5656            return [ personInstance : personInstance ]       
    5757        }
    5858
    5959        if (request.method == 'POST') {
    60             def personInstance = personService.currentUser()
     60            def personInstance = personService.currentUser
    6161
    6262            if(params.confirmPass == params.pass) {
Note: See TracChangeset for help on using the changeset viewer.