Skip to content

Commit

Permalink
fix(api): apply prettier rules
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinedorbozgithub committed Sep 29, 2024
1 parent 12ba999 commit 35f6005
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/src/user/guards/ability.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ export class Ability implements CanActivate {
.map(([_, value]) => value);

if (
permissionsFromRoles.some(
(permission) =>
permission[modelFromPathname]?.includes(MethodToAction[method]),
permissionsFromRoles.some((permission) =>
permission[modelFromPathname]?.includes(MethodToAction[method]),
)
) {
return true;
Expand Down

0 comments on commit 35f6005

Please sign in to comment.