Ignore:
Timestamp:
Jan 23, 2010, 10:42:41 AM (14 years ago)
Author:
gav
Message:

Svn move PersonService to AuthService?.

File:
1 edited

Legend:

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

    r216 r291  
    33class EntryDetailedController extends BaseController {
    44
    5     def personService
     5    def authService
    66    def taskService
    77
     
    2929        def entryInstance = Entry.get( params.id )
    3030        if(entryInstance) {
    31             if(entryInstance.enteredBy.loginName == personService.currentUser.loginName) {
     31            if(entryInstance.enteredBy.loginName == authService.currentUser.loginName) {
    3232                def taskID = entryInstance.task.id
    3333                entryInstance.delete(flush:true)
     
    5555        else {
    5656
    57             if(entryInstance.enteredBy.loginName == personService.currentUser.loginName) {
     57            if(entryInstance.enteredBy.loginName == authService.currentUser.loginName) {
    5858                return [ entryInstance : entryInstance ]
    5959            }
     
    7070        if(entryInstance) {
    7171            // The update method only accepts post requests, so this is just in case.
    72             if(entryInstance.enteredBy.loginName == personService.currentUser.loginName) {
     72            if(entryInstance.enteredBy.loginName == authService.currentUser.loginName) {
    7373                entryInstance.properties = params
    7474                if(!entryInstance.hasErrors() && entryInstance.save(flush: true)) {
Note: See TracChangeset for help on using the changeset viewer.