diff --git a/client/src/org/compiere/apps/wf/WFActivity.java b/client/src/org/compiere/apps/wf/WFActivity.java index ae1521b568..f1937bcb8b 100644 --- a/client/src/org/compiere/apps/wf/WFActivity.java +++ b/client/src/org/compiere/apps/wf/WFActivity.java @@ -54,6 +54,7 @@ import org.compiere.minigrid.MiniTable; import org.compiere.model.MColumn; import org.compiere.model.MQuery; import org.compiere.model.MRefList; +import org.compiere.model.MRole; import org.compiere.model.MSysConfig; import org.compiere.swing.CButton; import org.compiere.swing.CComboBox; @@ -397,6 +398,8 @@ public class WFActivity extends CPanel // //+ ") 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 @@ -451,6 +454,8 @@ public class WFActivity extends CPanel // + ") 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