Skip to content

Commit 5480fb5

Browse files
committed
Merge branch 'fix/SvCore_authoriseDqoByConfigType' into 'master'
fix authoriseDqoByConfigType See merge request svarog4/svarog!22
2 parents 1c63662 + d471688 commit 5480fb5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/com/prtech/svarog/SvCore.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,8 +2799,10 @@ protected boolean authoriseDqoByConfigType(DbQueryObject dqo, HashMap<String, Db
27992799
if (accessType.getAccessLevelValue() >= accessLevel.getAccessLevelValue()) {
28002800
hasAccess = true;
28012801
try {
2802-
subCfgDbx.addDbSearchItem(
2803-
new DbSearchCriterion(cfgFieldName, DbCompareOperand.EQUAL, permItem.getKey()));
2802+
DbSearchCriterion criterion = new DbSearchCriterion(cfgFieldName, DbCompareOperand.EQUAL,
2803+
permItem.getKey());
2804+
criterion.setNextCritOperand(DbLogicOperand.OR.toString());
2805+
subCfgDbx.addDbSearchItem(criterion);
28042806
} catch (SvException e) {
28052807
}
28062808
}

0 commit comments

Comments
 (0)