Skip to content

Commit

Permalink
Fix metadata endpoint permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
veigap committed Mar 26, 2024
1 parent 21dfcf3 commit 4401cf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public RestMindmap retrieve(@PathVariable int id) throws WiseMappingException {
return new RestMindmap(mindMap, user);
}

@PreAuthorize("isAuthenticated() and hasRole('ROLE_USER')")
@PreAuthorize("permitAll()")
@RequestMapping(method = RequestMethod.GET, value = "/{id}/metadata", produces = {"application/json"})
@ResponseBody
public RestMindmapMetadata retrieveMetadata(@PathVariable int id) throws WiseMappingException {
Expand Down

0 comments on commit 4401cf8

Please sign in to comment.