Add instance settings and option to disable user registration (#1745)

This commit is contained in:
Luke Vella 2025-06-02 19:40:00 +01:00 committed by GitHub
parent 9e1f3c616e
commit 3c2e008579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 552 additions and 153 deletions

View file

@ -1,4 +1,4 @@
import type { TimeFormat } from "@rallly/database";
import type { TimeFormat, UserRole } from "@rallly/database";
import type { DefaultSession, DefaultUser } from "next-auth";
import type { DefaultJWT } from "next-auth/jwt";
import type { NextRequest } from "next/server";
@ -23,6 +23,7 @@ declare module "next-auth" {
timeFormat?: TimeFormat | null;
weekStart?: number | null;
banned?: boolean | null;
role?: UserRole | null;
}
interface NextAuthRequest extends NextRequest {