Skip to content

Commit

Permalink
#1132 - Fixed similar logic flaw in ComponentQueryManager
Browse files Browse the repository at this point in the history
  • Loading branch information
stevespringett committed Aug 7, 2021
1 parent 2b27789 commit 18b0a3f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,10 @@ private void preprocessACLs(final Query<Component> query, final String inputFilt
if (teams != null && teams.size() > 0) {
final StringBuilder sb = new StringBuilder();
for (int i = 0, teamsSize = teams.size(); i < teamsSize; i++) {
//final Team team = teams.get(i);
final Team team = super.getObjectById(Team.class, teams.get(0).getId());
final Team team = super.getObjectById(Team.class, teams.get(i).getId());
sb.append(" project.accessTeams.contains(:team").append(i).append(") ");
params.put("team" + i, team);
if (i < teamsSize-2) {
if (i < teamsSize-1) {
sb.append(" || ");
}
}
Expand Down

0 comments on commit 18b0a3f

Please sign in to comment.