diff --git a/apps/client/src/pages/share/shared-page.tsx b/apps/client/src/pages/share/shared-page.tsx index 6d3a321c..50e5837d 100644 --- a/apps/client/src/pages/share/shared-page.tsx +++ b/apps/client/src/pages/share/shared-page.tsx @@ -2,7 +2,7 @@ import { useNavigate, useParams } from "react-router-dom"; import { Helmet } from "react-helmet-async"; import { useTranslation } from "react-i18next"; import { useSharePageQuery } from "@/features/share/queries/share-query.ts"; -import { Affix, Button, Container } from "@mantine/core"; +import { Container } from "@mantine/core"; import React, { useEffect } from "react"; import ReadonlyPageEditor from "@/features/editor/readonly-page-editor.tsx"; import { extractPageSlugId } from "@/lib"; diff --git a/apps/server/src/core/share/share.controller.ts b/apps/server/src/core/share/share.controller.ts index 47b5c17e..b9a9fcbf 100644 --- a/apps/server/src/core/share/share.controller.ts +++ b/apps/server/src/core/share/share.controller.ts @@ -65,7 +65,9 @@ export class ShareController { return { ...(await this.shareService.getSharedPage(dto, workspace.id)), - hasLicenseKey: Boolean(workspace.licenseKey), + hasLicenseKey: + Boolean(workspace.licenseKey) || + (this.environmentService.isCloud() && workspace.plan === 'business'), }; } @@ -173,7 +175,9 @@ export class ShareController { ) { return { ...(await this.shareService.getShareTree(dto.shareId, workspace.id)), - hasLicenseKey: Boolean(workspace.licenseKey), + hasLicenseKey: + Boolean(workspace.licenseKey) || + (this.environmentService.isCloud() && workspace.plan === 'business'), }; } } diff --git a/apps/server/src/ee b/apps/server/src/ee index 12f576ce..77d86e61 160000 --- a/apps/server/src/ee +++ b/apps/server/src/ee @@ -1 +1 @@ -Subproject commit 12f576ce721747903a9fadef3d58e0aa4e7ea3da +Subproject commit 77d86e6119a22981f9fc7658006229dfeb96122b