IDEMPIERE-2408 Workflow activities count is not filtered by role access

This commit is contained in:
anozimada 2015-03-08 11:21:37 -05:00
parent bf4765113f
commit 5f2c3e87de
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ public class DPActivitiesModel {
+ ") AND a.AD_Client_ID=?"; // #5
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
int AD_Client_ID = Env.getAD_Client_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