Moderator system

Closes #2357
This commit is contained in:
syuilo 2018-11-15 04:15:42 +09:00
parent dc9a19b9c7
commit 56d571c0f0
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
23 changed files with 191 additions and 17 deletions

View file

@ -99,6 +99,7 @@ export interface ILocalUser extends IUserBase {
lastUsedAt: Date;
isCat: boolean;
isAdmin?: boolean;
isModerator?: boolean;
isVerified?: boolean;
twoFactorSecret: string;
twoFactorEnabled: boolean;
@ -125,6 +126,7 @@ export interface IRemoteUser extends IUserBase {
};
updatedAt: Date;
isAdmin: false;
isModerator: false;
}
export type IUser = ILocalUser | IRemoteUser;