Skip to content

Commit

Permalink
fixed filter problem (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioG70 authored Dec 2, 2024
1 parent 618dbec commit 939536f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private Filter getDatabaseFindFilterForUser(User user, Filter searchFilter) {
}
} else if (filterParameter instanceof BasicSearchFilterParameter searchFilterParameter) {
String searchValue = searchFilterParameter.getValue();
permissionFilterParameters.add(new SimpleFilterParameter(ViewerConstants.INDEX_SEARCH, searchValue));
permissionFilterParameters.add(new BasicSearchFilterParameter(ViewerConstants.INDEX_SEARCH, searchValue));
}
}
}
Expand All @@ -337,7 +337,7 @@ private Filter getDatabaseFindFilterForUser(User user, Filter searchFilter) {

permissionFilterParameters.add(new OrFiltersParameters(permissionsOrFilterParameters));

return new Filter(new AndFiltersParameters(permissionFilterParameters));
return new Filter(permissionFilterParameters);
}

@Override
Expand Down

0 comments on commit 939536f

Please sign in to comment.