feat: changed line length to 120

This commit is contained in:
Akhil Mohan
2024-01-30 22:40:10 +05:30
parent 5855cc660a
commit bcbb49ed1b
142 changed files with 1183 additions and 3706 deletions
+1 -3
View File
@@ -24,9 +24,7 @@ export const conditionsMatcher = buildMongoQueryMatcher({ $glob }, { glob });
* Extracts and formats permissions from a CASL Ability object or a raw permission set.
*/
const extractPermissions = (ability: MongoAbility) =>
ability.rules.map(
(permission) => `${permission.action as string}_${permission.subject as string}`
);
ability.rules.map((permission) => `${permission.action as string}_${permission.subject as string}`);
/**
* Compares two sets of permissions to determine if the first set is at least as privileged as the second set.