Skip to content

Commit

Permalink
MAT-6743 fixed synk issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-prateekkeerthi committed Mar 7, 2024
1 parent 3c8b094 commit ac4d2d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public ResponseEntity<String> changeOwnership(
return response;
}

@PutMapping("/{id}/grant")
@PutMapping( value ="/{id}/grant", produces = {MediaType.TEXT_PLAIN_VALUE})
@PreAuthorize("#request.getHeader('api-key') == #apiKey")
public ResponseEntity<String> grantAccess(
HttpServletRequest request,
Expand All @@ -207,7 +207,7 @@ public ResponseEntity<String> grantAccess(
if (cqlLibraryService.grantAccess(id, userid)) {
response =
ResponseEntity.ok()
.body(String.format("%s granted access to Cql Library successfully.", userid));
.body(String.format("%s granted access to Library successfully.", userid));
actionLogService.logAction(id, ActionType.UPDATED, "apiKey");
}
return response;
Expand Down

0 comments on commit ac4d2d6

Please sign in to comment.