Merge pull request #2767 from akhilmhdh/feat/permission-error

Detail error when permission validation error occurs
This commit is contained in:
Akhil Mohan
2024-11-21 02:00:51 +05:30
committed by GitHub
13 changed files with 205 additions and 41 deletions
+9
View File
@@ -54,3 +54,12 @@ export const isAtLeastAsPrivileged = (permissions1: MongoAbility, permissions2:
return set1.size >= set2.size;
};
export enum PermissionConditionOperators {
$IN = "$in",
$ALL = "$all",
$REGEX = "$regex",
$EQ = "$eq",
$NEQ = "$ne",
$GLOB = "$glob"
}