Fix allow guest issue (#1472)

* 🐛 Issue with migrate script for node 20

* 🐛 Issue with allow guest check when default config not present
This commit is contained in:
Meier Lukas
2023-10-18 20:39:23 +02:00
committed by GitHub
parent f3f4f23718
commit b8fab01c0b
2 changed files with 1 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ export const getServerSideProps: GetServerSideProps<BoardGetServerSideProps> = a
);
const config = await getFrontendConfig(boardName);
if (!config.settings.access.allowGuests && !session?.user) {
if (!config?.settings?.access?.allowGuests && !session?.user) {
return {
notFound: true,
props: {

View File

@@ -38,7 +38,6 @@
"node_modules"
],
"ts-node": {
"esm": true,
"compilerOptions": {
"module": "nodenext",
},