Check for superadmin as opposed to admin

This commit is contained in:
Alex Holliday committed 2024-08-26 09:46:23 -07:00
1 parent 4b2973e308
commit ef02bd8078
4 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ const UserSchema = mongoose.Schema(
role: {
type: [String],
default: "user",
enum: ["user", "admin"],
enum: ["user", "admin", "superadmin"],
},
},
{