mirror of
				https://github.com/ajnart/homarr.git
				synced 2025-10-31 18:46:23 +01:00 
			
		
		
		
	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:
		| @@ -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: { | ||||
|   | ||||
| @@ -38,7 +38,6 @@ | ||||
|     "node_modules" | ||||
|   ], | ||||
|   "ts-node": { | ||||
|     "esm": true, | ||||
|     "compilerOptions": { | ||||
|       "module": "nodenext", | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user