Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

ralph(M15-126): Per-module fixes: packages/core/src/modules/share - R13 and the findings no rule covers

ralph26e536ac7471
diff --git a/packages/core/src/modules/share/share.service.ts b/packages/core/src/modules/share/share.service.ts
index 186eaf46c..70a7b5a0b 100644
--- a/packages/core/src/modules/share/share.service.ts
+++ b/packages/core/src/modules/share/share.service.ts
@@ -469,6 +469,9 @@ export async function createShareDashboard(
return { id: share.id, public: share.public, hasPassword: !!share.password };
}
+/** Assumes `getShareDashboard` already ran and reported `requiresPassword:
+ * false` — throws instead of returning `lockedShare` because a caller that
+ * reaches here without unlocking first has no locked-viewer UI to show. */
export async function getShareDashboardReports(
deps: ServiceDeps,
shareId: string,