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
This commit is contained in:
parent
5b186ca883
commit
c7fff6e5ce
|
@ -43,6 +43,7 @@ import org.compiere.model.MLookup;
|
||||||
import org.compiere.model.MLookupFactory;
|
import org.compiere.model.MLookupFactory;
|
||||||
import org.compiere.model.MQuery;
|
import org.compiere.model.MQuery;
|
||||||
import org.compiere.model.MRefList;
|
import org.compiere.model.MRefList;
|
||||||
|
import org.compiere.model.MRole;
|
||||||
import org.compiere.model.MSysConfig;
|
import org.compiere.model.MSysConfig;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
|
@ -311,6 +312,8 @@ public class WWFActivity extends ADForm implements EventListener
|
||||||
//
|
//
|
||||||
//+ ") ORDER BY a.Priority DESC, Created";
|
//+ ") ORDER BY a.Priority DESC, Created";
|
||||||
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
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;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
@ -368,6 +371,8 @@ public class WWFActivity extends ADForm implements EventListener
|
||||||
//
|
//
|
||||||
+ ") ORDER BY a.Priority DESC, Created";
|
+ ") ORDER BY a.Priority DESC, Created";
|
||||||
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
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;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue