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:
Carlos Ruiz 2010-05-17 23:11:05 +00:00
parent 5b186ca883
commit c7fff6e5ce
1 changed files with 5 additions and 0 deletions

View File

@ -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