Ignore:
Timestamp:
Oct 29, 2010, 12:56:45 PM (6 years ago)
Author:
m.s.vanvliet@…
Message:

Fixed JSON Response of getAuthorizationLevel

File:
1 edited

Legend:

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

    r1016 r1017  
    428428
    429429                        def user = AuthenticationService.getRemotelyLoggedInUser( params.consumer, params.token );
    430                         render( 'isOwner': study.isOwner(user), 'canRead': study.canRead(user), 'canWrite': study.canWrite(user) )
     430                        render( ['isOwner': study.isOwner(user), 'canRead': study.canRead(user), 'canWrite': study.canWrite(user)] as JSON )
    431431                } else {
    432432                        response.sendError(400)
Note: See TracChangeset for help on using the changeset viewer.