Check for superadmin as opposed to admin
This commit is contained in:
1 parent
4b2973e308
commit
ef02bd8078
4 files changed
+10
-10
No files matched your search
@@ -38,7 +38,7 @@ const UserSchema = mongoose.Schema(
|
||||
role: {
|
||||
type: [String],
|
||||
default: "user",
|
||||
enum: ["user", "admin"],
|
||||
enum: ["user", "admin", "superadmin"],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user