IDEMPIERE-2408 - minor - simplify default role discovery
This commit is contained in:
parent
5f2c3e87de
commit
9c3473e21b
|
@ -97,8 +97,7 @@ public class DPActivitiesModel {
|
||||||
+ ") AND a.AD_Client_ID=?"; // #5
|
+ ") AND a.AD_Client_ID=?"; // #5
|
||||||
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
||||||
int AD_Client_ID = Env.getAD_Client_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 = MRole.getDefault().addAccessSQL(sql, "a", true, false);
|
||||||
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