🐛 Allow anonymous condition for default board (#1588)
This commit is contained in:
@@ -41,7 +41,11 @@ export const getServerSideProps: GetServerSideProps<BoardGetServerSideProps> = a
|
|||||||
);
|
);
|
||||||
const config = await getFrontendConfig(boardName);
|
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) {
|
if (result) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user