mirror of
https://github.com/hexastack/hexabot
synced 2024-11-24 04:53:41 +00:00
fix(api): apply prettier rules
This commit is contained in:
parent
12ba999fb3
commit
35f60055af
@ -72,9 +72,8 @@ export class Ability implements CanActivate {
|
|||||||
.map(([_, value]) => value);
|
.map(([_, value]) => value);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
permissionsFromRoles.some(
|
permissionsFromRoles.some((permission) =>
|
||||||
(permission) =>
|
permission[modelFromPathname]?.includes(MethodToAction[method]),
|
||||||
permission[modelFromPathname]?.includes(MethodToAction[method]),
|
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user