mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 00:07:00 +01:00
feat: creates admin privileges
This commit is contained in:
1 parent
76b5d00fb8
commit
62fd9eca7d
6 files changed
+23
-45
No files matched your search
@@ -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