mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-01 00:18:18 +02:00
hide incomplete sources for non-admins (#1901)
This commit is contained in:
parent
6c88c0156c
commit
4029233df0
@ -168,7 +168,8 @@ export default async function Home() {
|
||||
(ccPair) => ccPair.has_successful_run && ccPair.docs_indexed > 0
|
||||
) &&
|
||||
!shouldDisplayNoSourcesModal &&
|
||||
!shouldShowWelcomeModal;
|
||||
!shouldShowWelcomeModal &&
|
||||
(!user || user.role == "admin");
|
||||
|
||||
const sidebarToggled = cookies().get(SIDEBAR_TOGGLED_COOKIE_NAME);
|
||||
const agenticSearchToggle = cookies().get(AGENTIC_SEARCH_TYPE_COOKIE_NAME);
|
||||
|
@ -177,7 +177,8 @@ export async function fetchChatData(searchParams: {
|
||||
!shouldShowWelcomeModal &&
|
||||
!ccPairs.some(
|
||||
(ccPair) => ccPair.has_successful_run && ccPair.docs_indexed > 0
|
||||
);
|
||||
) &&
|
||||
(!user || user.role == "admin");
|
||||
|
||||
// if no connectors are setup, only show personas that are pure
|
||||
// passthrough and don't do any retrieval
|
||||
|
Loading…
x
Reference in New Issue
Block a user