From b5201b5bdead9f0c1e29811ab5402e3a068bb154 Mon Sep 17 00:00:00 2001 From: jendib Date: Sun, 4 Aug 2013 16:57:43 +0200 Subject: [PATCH] Fix user isolation on tag stats --- .../src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java b/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java index 1de018aa..badefb86 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java +++ b/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/TagDao.java @@ -116,7 +116,7 @@ public class TagDao { sb.append(" from T_TAG t "); sb.append(" left join T_DOCUMENT_TAG dt on t.TAG_ID_C = dt.DOT_IDTAG_C "); sb.append(" left join T_DOCUMENT d on d.DOC_ID_C = dt.DOT_IDDOCUMENT_C and d.DOC_DELETEDATE_D is null and d.DOC_IDUSER_C = :userId "); - sb.append(" where t.TAG_DELETEDATE_D is null "); + sb.append(" where t.TAG_IDUSER_C = :userId and t.TAG_DELETEDATE_D is null "); sb.append(" group by t.TAG_ID_C "); sb.append(" order by t.TAG_NAME_C ");