This reverts commit 2c4e66f8e2
.
This commit is contained in:
parent
39a5bd813d
commit
5d367cbc29
|
@ -115,12 +115,12 @@ public class Archive {
|
||||||
{
|
{
|
||||||
// Internal Users
|
// Internal Users
|
||||||
String sql = "SELECT AD_User_ID, Name "
|
String sql = "SELECT AD_User_ID, Name "
|
||||||
+ "FROM AD_User u WHERE u.AD_Client_ID IN(0,?) AND EXISTS "
|
+ "FROM AD_User u WHERE EXISTS "
|
||||||
+"(SELECT * FROM AD_User_Roles ur WHERE u.AD_User_ID=ur.AD_User_ID) "
|
+"(SELECT * FROM AD_User_Roles ur WHERE u.AD_User_ID=ur.AD_User_ID) "
|
||||||
+ "ORDER BY 2";
|
+ "ORDER BY 2";
|
||||||
MRole role = MRole.getDefault();
|
MRole role = MRole.getDefault();
|
||||||
sql = role.addAccessSQL(sql, "u", true, false);
|
sql = role.addAccessSQL(sql, "u", true, false);
|
||||||
return DB.getKeyNamePairs(m_trxName, sql, true, Env.getAD_Client_ID(Env.getCtx()));
|
return DB.getKeyNamePairs(m_trxName, sql, true);
|
||||||
} // dynInit
|
} // dynInit
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue