IDEMPIERE-4260 Web Services : Query should use MRole.addAccessSQL with RO (#20)
Co-authored-by: Nicolas Micoud <nmicoud@tgi.fr>
This commit is contained in:
parent
c3cad0d1e2
commit
94169c0af4
|
@ -1456,7 +1456,7 @@ public class ModelADServiceImpl extends AbstractService implements ModelADServic
|
||||||
if (manageTrx)
|
if (manageTrx)
|
||||||
trx.setDisplayName(getClass().getName()+"_"+webServiceName+"_queryData");
|
trx.setDisplayName(getClass().getName()+"_"+webServiceName+"_queryData");
|
||||||
|
|
||||||
StringBuilder sqlBuilder = new StringBuilder(role.addAccessSQL("SELECT * FROM " + tableName, tableName, true, true));
|
StringBuilder sqlBuilder = new StringBuilder(role.addAccessSQL("SELECT * FROM " + tableName, tableName, true, MRole.SQL_RO));
|
||||||
|
|
||||||
ArrayList<Object> sqlParaList = new ArrayList<Object>();
|
ArrayList<Object> sqlParaList = new ArrayList<Object>();
|
||||||
PO holderPo = table.getPO(0, trxName);
|
PO holderPo = table.getPO(0, trxName);
|
||||||
|
|
Loading…
Reference in New Issue