🐛 Allow anonymous condition for default board (#1588)

This commit is contained in:
Manuel
2023-11-11 16:47:21 +01:00
committed by GitHub
parent 351aa47e47
commit b146a7e1e2

View File

@@ -41,7 +41,11 @@ export const getServerSideProps: GetServerSideProps<BoardGetServerSideProps> = a
);
const config = await getFrontendConfig(boardName);
const result = checkForSessionOrAskForLogin(ctx, session, () => true);
const result = checkForSessionOrAskForLogin(
ctx,
session,
() => config.settings.access.allowGuests || session?.user != undefined
);
if (result) {
return result;
}