From c7fff6e5cedeb22c61dd8a2fc873c5e4ebbf92eb Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 17 May 2010 23:11:05 +0000 Subject: [PATCH] BF [2997593] - WFActivity panel displaying activities of all clients - bring same solution for zkwebui - thanks to Silvano (freepath) Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2997593 --- .../WEB-INF/src/org/adempiere/webui/apps/wf/WWFActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/apps/wf/WWFActivity.java b/zkwebui/WEB-INF/src/org/adempiere/webui/apps/wf/WWFActivity.java index bf7c799e57..89e1f096ae 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/apps/wf/WWFActivity.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/apps/wf/WWFActivity.java @@ -43,6 +43,7 @@ import org.compiere.model.MLookup; import org.compiere.model.MLookupFactory; import org.compiere.model.MQuery; import org.compiere.model.MRefList; +import org.compiere.model.MRole; import org.compiere.model.MSysConfig; import org.compiere.util.CLogger; import org.compiere.util.DB; @@ -311,6 +312,8 @@ public class WWFActivity extends ADForm implements EventListener // //+ ") ORDER BY a.Priority DESC, Created"; int AD_User_ID = Env.getAD_User_ID(Env.getCtx()); + MRole role = MRole.get(Env.getCtx(), Env.getAD_Role_ID(Env.getCtx())); + sql = role.addAccessSQL(sql, "a", true, false); PreparedStatement pstmt = null; ResultSet rs = null; try @@ -368,6 +371,8 @@ public class WWFActivity extends ADForm implements EventListener // + ") ORDER BY a.Priority DESC, Created"; int AD_User_ID = Env.getAD_User_ID(Env.getCtx()); + MRole role = MRole.get(Env.getCtx(), Env.getAD_Role_ID(Env.getCtx())); + sql = role.addAccessSQL(sql, "a", true, false); PreparedStatement pstmt = null; ResultSet rs = null; try