Show
Ignore:
Timestamp:
02-02-11 16:40:22 (3 years ago)
Author:
robert@…
Message:

Implemented saving of queries

Files:
1 modified

Legend:

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

    r1440 r1482  
    525525 
    526526                        def user = AuthenticationService.getRemotelyLoggedInUser( params.consumer, params.token ); 
    527                         render( ['isOwner': study.isOwner(user), 'canRead': study.canRead(user), 'canWrite': study.canWrite(user)] as JSON ) 
     527                        def auth = ['isOwner': study.isOwner(user), 'canRead': study.canRead(user), 'canWrite': study.canWrite(user)]; 
     528                        log.trace "Authorization for study " + study.title + " and user " + user.username + ": " + auth 
     529                        render auth as JSON; 
    528530                } else { 
    529531                        response.sendError(400)