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:
Carlos Ruiz 2020-04-30 16:01:49 +02:00 committed by GitHub
parent c3cad0d1e2
commit 94169c0af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1456,7 +1456,7 @@ public class ModelADServiceImpl extends AbstractService implements ModelADServic
if (manageTrx)
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>();
PO holderPo = table.getPO(0, trxName);