IDEMPIERE-2408 - minor - simplify default role discovery

This commit is contained in:
Carlos Ruiz 2015-03-08 11:22:00 -05:00
parent 5f2c3e87de
commit 9c3473e21b
1 changed files with 1 additions and 2 deletions

View File

@ -97,8 +97,7 @@ 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);
sql = MRole.getDefault().addAccessSQL(sql, "a", true, false);
PreparedStatement pstmt = null;
ResultSet rs = null;
try