Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: redirect to apps page if current user has no permission to visit dataset page (#21065)
NFish41cb39eb5d4e
diff --git a/web/app/(commonLayout)/datasets/layout.tsx b/web/app/(commonLayout)/datasets/layout.tsxindex aecb537aa6d..bb514fc3488 100644--- a/web/app/(commonLayout)/datasets/layout.tsx+++ b/web/app/(commonLayout)/datasets/layout.tsx@@ -1,9 +1,23 @@'use client'+import Loading from '@/app/components/base/loading'+import { useAppContext } from '@/context/app-context'import { ExternalApiPanelProvider } from '@/context/external-api-panel-context'import { ExternalKnowledgeApiProvider } from '@/context/external-knowledge-api-context'+import { useRouter } from 'next/navigation'+import { useEffect } from 'react'export default function DatasetsLayout({ children }: { children: React.ReactNode }) {+ const { isCurrentWorkspaceEditor } = useAppContext()+ const router = useRouter()++ useEffect(() => {+ if (!isCurrentWorkspaceEditor)+ router.replace('/apps')+ }, [isCurrentWorkspaceEditor, router])++ if (!isCurrentWorkspaceEditor)+ return <Loading type='app' />return (<ExternalKnowledgeApiProvider><ExternalApiPanelProvider>