feat: add env-based super admin authentication and complete role & permission system
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-18 00:08:04 +03:30
parent 86655f2b69
commit 2b94fdb034
11 changed files with 814 additions and 64 deletions
+1 -1
View File
@@ -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()
})