From b8fab01c0b7ab7b5b8438ecb4cb626598f60a5e7 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Wed, 18 Oct 2023 20:39:23 +0200 Subject: [PATCH] Fix allow guest issue (#1472) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 Issue with migrate script for node 20 * 🐛 Issue with allow guest check when default config not present --- src/pages/board/index.tsx | 2 +- tsconfig.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/board/index.tsx b/src/pages/board/index.tsx index 20f25295a..6a283e919 100644 --- a/src/pages/board/index.tsx +++ b/src/pages/board/index.tsx @@ -45,7 +45,7 @@ export const getServerSideProps: GetServerSideProps = a ); const config = await getFrontendConfig(boardName); - if (!config.settings.access.allowGuests && !session?.user) { + if (!config?.settings?.access?.allowGuests && !session?.user) { return { notFound: true, props: { diff --git a/tsconfig.json b/tsconfig.json index 4fb9c134d..ddd387b7f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -38,7 +38,6 @@ "node_modules" ], "ts-node": { - "esm": true, "compilerOptions": { "module": "nodenext", },