diff --git a/client/src/composables/usePanels.ts b/client/src/composables/usePanels.ts index 46f6f334cc68..9102187ab192 100644 --- a/client/src/composables/usePanels.ts +++ b/client/src/composables/usePanels.ts @@ -3,14 +3,19 @@ import { useRoute } from "vue-router/composables"; import { useUserStore } from "@/stores/userStore"; +import { useConfig } from "./config"; + export function usePanels() { const userStore = useUserStore(); const route = useRoute(); + const { config, isConfigLoaded } = useConfig(); const showPanels = computed(() => { const panels = route.query.hide_panels; if (panels !== undefined && panels !== null && typeof panels === "string") { return panels.toLowerCase() != "true"; + } else if (isConfigLoaded.value && config.value.require_login === true) { + return false; } return true; });