feat: add env-based super admin authentication and complete role & permission system
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -25,7 +25,7 @@ const permissionSchema = new mongoose.Schema({
|
||||
})
|
||||
|
||||
permissionSchema.pre(/^find/, function (next) {
|
||||
this.find({ active: { $ne: false } })
|
||||
this.find({ isActive: { $ne: false } })
|
||||
next()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user