mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-20 00:18:47 -05:00
Merge pull request #377 from bluewave-labs/feat/permissions
Change permissions to array[string], resolves #373
This commit is contained in:
@@ -36,7 +36,7 @@ const UserSchema = mongoose.Schema(
|
||||
default: false,
|
||||
},
|
||||
role: {
|
||||
type: String,
|
||||
type: [String],
|
||||
default: "user",
|
||||
enum: ["user", "admin"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user