mirror of
https://github.com/docmost/docmost.git
synced 2025-11-27 02:23:36 +10:00
Hide branding in business plan
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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'),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule apps/server/src/ee updated: 12f576ce72...77d86e6119
Reference in New Issue
Block a user