From ec4a391cb0aa7ff8228b5d1e2cfac3be2efe119b Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 22 Jan 2023 19:51:20 +0100 Subject: [PATCH] Added the allowInvites account field --- src/models/Account.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/models/Account.ts b/src/models/Account.ts index 2488b0b..c81c54d 100644 --- a/src/models/Account.ts +++ b/src/models/Account.ts @@ -11,7 +11,8 @@ export interface IAccount { verified: boolean, verificationSecret: number | undefined, totpSecret?: string, - totpEnabled: boolean + totpEnabled: boolean, + allowInvites: boolean } const AccountSchema = new Schema({ @@ -42,6 +43,10 @@ const AccountSchema = new Schema({ totpEnabled: { type: Boolean, default: false + }, + allowInvites: { + type: Boolean, + default: true } });