From 047c8cce9dcd3db3783e03090b99446f72c92047 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 24 Sep 2022 09:52:45 -0700 Subject: [PATCH] Revert condition change. --- .../src/main/java/com/wisemapping/dao/MindmapManagerImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/dao/MindmapManagerImpl.java b/wise-webapp/src/main/java/com/wisemapping/dao/MindmapManagerImpl.java index 6f55f3b9..698b6a3b 100644 --- a/wise-webapp/src/main/java/com/wisemapping/dao/MindmapManagerImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/dao/MindmapManagerImpl.java @@ -118,9 +118,8 @@ public class MindmapManagerImpl public List findMindmapByUser(@NotNull User user) { final Mindmap collaborator; - // Note: Inconsistency on the COLLABORATION table (m.creator.id=:collabId). Needs to review it. final Query query = currentSession() - .createQuery("from com.wisemapping.model.Mindmap m where m.creator.id=:collabId OR m.id in (select c.mindMap.id from com.wisemapping.model.Collaboration as c where c.collaborator.id=:collabId )"); + .createQuery("from com.wisemapping.model.Mindmap m where m.id in (select c.mindMap.id from com.wisemapping.model.Collaboration as c where c.collaborator.id=:collabId )"); query.setParameter("collabId", user.getId()); return query.getResultList();