From 3b81e7849aad0d006a25cfebd5fb46eb61f91c81 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 7 Aug 2026 01:21:46 +0000 Subject: [PATCH] =?UTF-8?q?fix(plugin-sharing):=20tenancy=20slot=20?= =?UTF-8?q?=E6=9F=A5=E6=89=BE=E6=94=B9=E7=94=A8=E5=A5=91=E7=BA=A6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B,=E6=AD=A2=E8=A1=80=20main=20=E7=9A=84=20check:slot-lo?= =?UTF-8?q?okup=20=E9=97=A8=E7=A6=81=20(#6100)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #6100 --- packages/plugins/plugin-sharing/src/sharing-plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/plugin-sharing/src/sharing-plugin.ts b/packages/plugins/plugin-sharing/src/sharing-plugin.ts index 339188898b..bde25cda5e 100644 --- a/packages/plugins/plugin-sharing/src/sharing-plugin.ts +++ b/packages/plugins/plugin-sharing/src/sharing-plugin.ts @@ -6,7 +6,7 @@ import type { EngineMiddleware, OperationContext } from '@objectstack/objectql'; import type { IHttpServer, IHttpRequest, ShareLinkExecutionContext } from '@objectstack/spec/contracts'; import { SysRecordShare, SysSharingRule, SysShareLink } from './objects/index.js'; import { SysBusinessUnit, SysBusinessUnitMember } from '@objectstack/platform-objects/identity'; -import { SharingService, type SharingEngine } from './sharing-service.js'; +import { SharingService, type SharingEngine, type SharingTenancyProbe } from './sharing-service.js'; import { SharingRuleService } from './sharing-rule-service.js'; import { ShareLinkService } from './share-link-service.js'; import { registerShareLinkRoutes } from './share-link-routes.js'; @@ -456,7 +456,7 @@ export class SharingServicePlugin implements Plugin { // widen a hierarchy scope that carries no organization; an unresolvable // posture is not evidence of `single`. tenancy: () => { - try { return ctx.getService('tenancy'); } + try { return ctx.getService('tenancy'); } catch { return null; } }, });