Fix metadata endpoint permissions.

This commit is contained in:
Paulo Gustavo Veiga 2024-03-25 22:45:21 -07:00
parent 21dfcf3c4f
commit 4401cf8fe9

View File

@ -78,7 +78,7 @@ public class MindmapController extends BaseController {
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 {