diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index b4a830a16..fb24978b6 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -1157,7 +1157,6 @@ "circulation.requests.item.move.post", "circulation.requests.item.put", "user-tenants.collection.get", - "orders-storage.settings.collection.get", "consortia.sharing-instances.item.post" ] }, diff --git a/src/main/java/org/folio/helper/BindHelper.java b/src/main/java/org/folio/helper/BindHelper.java index 2f1031aa0..e9c20fc22 100644 --- a/src/main/java/org/folio/helper/BindHelper.java +++ b/src/main/java/org/folio/helper/BindHelper.java @@ -21,7 +21,6 @@ import org.folio.rest.jaxrs.model.ReceivedItem; import org.folio.rest.jaxrs.model.Title; import org.folio.rest.tools.utils.TenantTool; -import org.folio.service.consortium.ConsortiumConfigurationService; import org.folio.service.inventory.InventoryInstanceManager; import org.folio.service.inventory.InventoryItemRequestService; import org.springframework.beans.factory.annotation.Autowired; @@ -50,9 +49,6 @@ public class BindHelper extends CheckinReceivePiecesHelper @Autowired private InventoryInstanceManager inventoryInstanceManager; - @Autowired - private ConsortiumConfigurationService consortiumConfigurationService; - public BindHelper(BindPiecesCollection bindPiecesCollection, Map okapiHeaders, Context ctx) { super(okapiHeaders, ctx); @@ -115,9 +111,8 @@ private Future clearTitleBindItemsIfNeeded(String titleId, String bindItem } public Future bindPieces(BindPiecesCollection bindPiecesCollection, RequestContext requestContext) { - return consortiumConfigurationService.overrideContextToCentralTenantIfNeeded(requestContext) - .compose(ctx -> removeForbiddenEntities(ctx) - .compose(vVoid -> processBindPieces(bindPiecesCollection, ctx))); + return removeForbiddenEntities(requestContext) + .compose(vVoid -> processBindPieces(bindPiecesCollection, requestContext)); } private Future processBindPieces(BindPiecesCollection bindPiecesCollection, RequestContext requestContext) {