Skip to content

Commit

Permalink
Merge pull request #10967 from QualitativeDataRepository/QDR-refactor…
Browse files Browse the repository at this point in the history
…_avoidJoin_in_indexing

Update to #10705 fixing a blank filter query
  • Loading branch information
landreev authored Oct 25, 2024
2 parents 9339e44 + 940b3fb commit ff9b2e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public SolrQueryResponse search(
// PERMISSION FILTER QUERY
// -----------------------------------
String permissionFilterQuery = this.getPermissionFilterQuery(dataverseRequest, solrQuery, onlyDatatRelatedToMe, addFacets);
if (permissionFilterQuery != null) {
if (!StringUtils.isBlank(permissionFilterQuery)) {
solrQuery.addFilterQuery(permissionFilterQuery);
}

Expand Down Expand Up @@ -1047,7 +1047,7 @@ private String getPermissionFilterQuery(DataverseRequest dataverseRequest, SolrQ
// add joins on all the non-public groups that may exist for the
// user:

// Authenticated users and GuestUser may be part of one or more groups; such
// Authenticated users, *and the GuestUser*, may be part of one or more groups; such
// as IP Groups.
groups = groupService.collectAncestors(groupService.groupsFor(dataverseRequest));

Expand Down

0 comments on commit ff9b2e3

Please sign in to comment.