From fb10f50ed989ec7df9eb88607582126b76dfe02f Mon Sep 17 00:00:00 2001 From: NFish Date: Fri, 9 May 2025 14:26:14 +0800 Subject: [PATCH] fix: hide access control in publish panel --- web/app/components/app/app-publisher/index.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx index b24c865c42..8d0028c7d7 100644 --- a/web/app/components/app/app-publisher/index.tsx +++ b/web/app/components/app/app-publisher/index.tsx @@ -263,11 +263,11 @@ const AppPublisher = ({ ) } - {(isGettingUserCanAccessApp || isGettingAppWhiteListSubjects) + {(systemFeatures.webapp_auth.enabled && (isGettingUserCanAccessApp || isGettingAppWhiteListSubjects)) ?
: <> -
+ {systemFeatures.webapp_auth.enabled &&

{t('app.publishApp.title')}

@@ -287,12 +287,12 @@ const AppPublisher = ({
{!isAppAccessSet &&

{t('app.publishApp.notSetDesc')}

} - + }
- + } > @@ -301,10 +301,10 @@ const AppPublisher = ({ {appDetail?.mode === 'workflow' || appDetail?.mode === 'completion' ? ( - + } > @@ -324,13 +324,13 @@ const AppPublisher = ({ {t('workflow.common.embedIntoSite')} )} - + { publishedAt && handleOpenInExplore() }} - disabled={!publishedAt || !userCanAccessApp?.result} + disabled={!publishedAt || (systemFeatures.webapp_auth.enabled && !userCanAccessApp?.result)} icon={} > {t('workflow.common.openInExplore')}