Minor fix on metadata permissions.

main
Paulo Gustavo Veiga 2024-03-25 22:47:37 -07:00
parent 4401cf8fe9
commit cfb2fc60d8
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class MindmapController extends BaseController {
@RequestMapping(method = RequestMethod.GET, value = "/{id}/metadata", produces = {"application/json"}) @RequestMapping(method = RequestMethod.GET, value = "/{id}/metadata", produces = {"application/json"})
@ResponseBody @ResponseBody
public RestMindmapMetadata retrieveMetadata(@PathVariable int id) throws WiseMappingException { public RestMindmapMetadata retrieveMetadata(@PathVariable int id) throws WiseMappingException {
final Account user = Utils.getUser(true); final Account user = Utils.getUser(false);
final Mindmap mindmap = findMindmapById(id); final Mindmap mindmap = findMindmapById(id);
final MindMapBean mindMapBean = new MindMapBean(mindmap, user); final MindMapBean mindMapBean = new MindMapBean(mindmap, user);