Change permissions to array[string]
This commit is contained in:
1 parent
b4b2e3ec56
commit
af61a4ef0a
1 file changed
+1
-1
@@ -36,7 +36,7 @@ const UserSchema = mongoose.Schema(
|
|||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
role: {
|
role: {
|
||||||
type: String,
|
type: [String],
|
||||||
default: "user",
|
default: "user",
|
||||||
enum: ["user", "admin"],
|
enum: ["user", "admin"],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user