Skip to content

Commit

Permalink
fix(mod-search): fix export of cql files
Browse files Browse the repository at this point in the history
- Add comment

Closes: MSEARCH-762
  • Loading branch information
viacheslavpoliakov committed Jun 21, 2024
1 parent 61ddbf8 commit 8545a0d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public QueryBuilder filterQueryForActiveAffiliation(QueryBuilder query, String r
return filterQueryForActiveAffiliation(query, resource, contextTenantId);
}

/**
* Modifies query to support both 'shared' filter and Active Affiliation.
* Active Affiliation have precedence over 'shared' filter so in case of member tenant
* modified query will have member 'tenantId' filter with shared=true).
*/
public QueryBuilder filterQueryForActiveAffiliation(QueryBuilder query, String resource, String contextTenantId) {
var centralTenantId = consortiumTenantService.getCentralTenant(contextTenantId);
if (centralTenantId.isEmpty()) {
Expand Down

0 comments on commit 8545a0d

Please sign in to comment.