mirror of
				https://github.com/ajnart/homarr.git
				synced 2025-10-31 02:25:57 +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); |   const config = await getFrontendConfig(boardName); | ||||||
|  |  | ||||||
|   if (!config.settings.access.allowGuests && !session?.user) { |   if (!config?.settings?.access?.allowGuests && !session?.user) { | ||||||
|     return { |     return { | ||||||
|       notFound: true, |       notFound: true, | ||||||
|       props: { |       props: { | ||||||
|   | |||||||
| @@ -38,7 +38,6 @@ | |||||||
|     "node_modules" |     "node_modules" | ||||||
|   ], |   ], | ||||||
|   "ts-node": { |   "ts-node": { | ||||||
|     "esm": true, |  | ||||||
|     "compilerOptions": { |     "compilerOptions": { | ||||||
|       "module": "nodenext", |       "module": "nodenext", | ||||||
|     }, |     }, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user