Ignore:
Timestamp:
Feb 2, 2011, 4:40:22 PM (6 years ago)
Author:
robert@…
Message:

Implemented saving of queries

File:
1 edited

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)
Note: See TracChangeset for help on using the changeset viewer.