From 3dd2c170e78d885813fb31cf8e9874d1941d42b4 Mon Sep 17 00:00:00 2001 From: NFish Date: Fri, 7 Feb 2025 12:24:52 +0800 Subject: [PATCH] fix: only saas version can download compliance --- web/app/components/header/account-dropdown/index.tsx | 3 ++- web/config/index.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/header/account-dropdown/index.tsx b/web/app/components/header/account-dropdown/index.tsx index 30389c1bcb..69906f11cb 100644 --- a/web/app/components/header/account-dropdown/index.tsx +++ b/web/app/components/header/account-dropdown/index.tsx @@ -20,6 +20,7 @@ import AppContext, { useAppContext } from '@/context/app-context' import { useModalContext } from '@/context/modal-context' import { LanguagesSupported } from '@/i18n/language' import { LicenseStatus } from '@/types/feature' +import { IS_CLOUD_EDITION } from '@/config' export type IAppSelector = { isMobile: boolean @@ -140,7 +141,7 @@ export default function AppSelector({ isMobile }: IAppSelector) { } - {isCurrentWorkspaceOwner && } + {IS_CLOUD_EDITION && isCurrentWorkspaceOwner && }
diff --git a/web/config/index.ts b/web/config/index.ts index b87c027de1..4a6f4fc4f7 100644 --- a/web/config/index.ts +++ b/web/config/index.ts @@ -32,6 +32,7 @@ export const PUBLIC_API_PREFIX: string = publicApiPrefix const EDITION = process.env.NEXT_PUBLIC_EDITION || globalThis.document?.body?.getAttribute('data-public-edition') || 'SELF_HOSTED' export const IS_CE_EDITION = EDITION === 'SELF_HOSTED' +export const IS_CLOUD_EDITION = EDITION === 'CLOUD' export const SUPPORT_MAIL_LOGIN = !!(process.env.NEXT_PUBLIC_SUPPORT_MAIL_LOGIN || globalThis.document?.body?.getAttribute('data-public-support-mail-login'))