Skip to content

Commit

Permalink
Check whether ECS is enabled when getting entity type summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
bvsharp committed Sep 27, 2024
1 parent 5280cfa commit f5b1832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/folio/fqm/service/EntityTypeService.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public List<EntityTypeSummary> getEntityTypeSummary(Set<UUID> entityTypeIds, boo
EntityTypeSummary result = new EntityTypeSummary()
.id(UUID.fromString(entityType.getId()))
.label(localizationService.getEntityTypeLabel(entityType.getName()))
.crossTenantQueriesEnabled(entityType.getCrossTenantQueriesEnabled());
.crossTenantQueriesEnabled(entityType.getCrossTenantQueriesEnabled() && crossTenantQueryService.isCentralTenant());
if (includeInaccessible) {
return result.missingPermissions(
permissionsService.getRequiredPermissions(entityType)
Expand Down

0 comments on commit f5b1832

Please sign in to comment.