Merge pull request #377 from bluewave-labs/feat/permissions

Change permissions to array[string], resolves #373
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-07-18 14:41:34 -07:00
commit 65ad8431d8
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ const UserSchema = mongoose.Schema(
default: false,
},
role: {
type: String,
type: [String],
default: "user",
enum: ["user", "admin"],
},