IDEMPIERE-3725 Unposted document window takes a long time to load (AP2-238)
This commit is contained in:
parent
d082d6c9f8
commit
81b55cbdf1
|
@ -699,8 +699,9 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
.append(mTab.getTableName());
|
.append(mTab.getTableName());
|
||||||
if (where.length() > 0)
|
if (where.length() > 0)
|
||||||
sql.append(" WHERE ").append(where);
|
sql.append(" WHERE ").append(where);
|
||||||
// Does not consider security
|
String finalSQL = MRole.getDefault().addAccessSQL(sql.toString(),
|
||||||
int no = DB.getSQLValue(null, sql.toString());
|
mTab.getTableName(), MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
|
int no = DB.getSQLValue(null, finalSQL.toString());
|
||||||
//
|
//
|
||||||
require = MRole.getDefault().isQueryRequire(no);
|
require = MRole.getDefault().isQueryRequire(no);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue