Show
Ignore:
Timestamp:
29-10-10 12:56:45 (3 years ago)
Author:
m.s.vanvliet@…
Message:

Fixed JSON Response of getAuthorizationLevel

Files:
1 modified

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)