mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 21:57:56 +01:00
Revert condition change.
This commit is contained in:
parent
704fb1a880
commit
047c8cce9d
@ -118,9 +118,8 @@ public class MindmapManagerImpl
|
|||||||
public List<Mindmap> findMindmapByUser(@NotNull User user) {
|
public List<Mindmap> findMindmapByUser(@NotNull User user) {
|
||||||
|
|
||||||
final Mindmap collaborator;
|
final Mindmap collaborator;
|
||||||
// Note: Inconsistency on the COLLABORATION table (m.creator.id=:collabId). Needs to review it.
|
|
||||||
final Query query = currentSession()
|
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());
|
query.setParameter("collabId", user.getId());
|
||||||
|
|
||||||
return query.getResultList();
|
return query.getResultList();
|
||||||
|
Loading…
Reference in New Issue
Block a user