diff --git a/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/FetchActiveOrganization.scala b/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/FetchActiveOrganization.scala index 704d0fa484..67fadd5ec3 100644 --- a/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/FetchActiveOrganization.scala +++ b/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/FetchActiveOrganization.scala @@ -22,7 +22,7 @@ object FetchActiveOrganization { def apply(xas: Transactors): FetchActiveOrganization = (org: Label) => GlobalStateGet[Label, OrganizationState](Organizations.entityType, org) - .transact(xas.read) + .transact(xas.write) .flatMap { case None => IO.raiseError(OrganizationNotFound(org)) case Some(o) if o.deprecated => IO.raiseError(OrganizationIsDeprecated(org))