Hide branding in business plan

This commit is contained in:
Philipinho
2025-05-17 11:16:46 -07:00
parent 45e8698ab6
commit e6e22f08a5
3 changed files with 8 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import { useNavigate, useParams } from "react-router-dom";
import { Helmet } from "react-helmet-async"; import { Helmet } from "react-helmet-async";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { useSharePageQuery } from "@/features/share/queries/share-query.ts"; 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 React, { useEffect } from "react";
import ReadonlyPageEditor from "@/features/editor/readonly-page-editor.tsx"; import ReadonlyPageEditor from "@/features/editor/readonly-page-editor.tsx";
import { extractPageSlugId } from "@/lib"; import { extractPageSlugId } from "@/lib";

View File

@@ -65,7 +65,9 @@ export class ShareController {
return { return {
...(await this.shareService.getSharedPage(dto, workspace.id)), ...(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 { return {
...(await this.shareService.getShareTree(dto.shareId, workspace.id)), ...(await this.shareService.getShareTree(dto.shareId, workspace.id)),
hasLicenseKey: Boolean(workspace.licenseKey), hasLicenseKey:
Boolean(workspace.licenseKey) ||
(this.environmentService.isCloud() && workspace.plan === 'business'),
}; };
} }
} }