mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
feat: creates admin privileges
This commit is contained in:
@@ -18,6 +18,7 @@ const UserSchema = new Schema({
|
||||
default: Boolean,
|
||||
},
|
||||
],
|
||||
isAdmin: { type: Boolean, default: false },
|
||||
photo: String,
|
||||
repositories: [String],
|
||||
default: {
|
||||
|
||||
@@ -8,6 +8,7 @@ export interface IUser {
|
||||
github: string;
|
||||
};
|
||||
username: string;
|
||||
isAdmin: boolean;
|
||||
emails: {
|
||||
email: string;
|
||||
default: boolean;
|
||||
|
||||
Reference in New Issue
Block a user