Skip to content

Commit

Permalink
Fix code style with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Dallin343 committed Jun 26, 2024
1 parent 3d9e175 commit d7c1729
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/authz.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class AuthZGuard implements CanActivate {
user: AuthUser,
permission: Permission
): Promise<boolean> => {
const { possession , resource, action } = permission;
const { possession, resource, action } = permission;

if (!this.options.enablePossession) {
return this.enforcer.enforce(user, resource, action);
Expand Down
7 changes: 6 additions & 1 deletion src/interfaces/permission.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { AuthActionVerb, AuthPossession, CustomAuthActionVerb, AuthResource } from '../types';
import {
AuthActionVerb,
AuthPossession,
CustomAuthActionVerb,
AuthResource
} from '../types';
import { ExecutionContext } from '@nestjs/common';

export interface Permission {
Expand Down

0 comments on commit d7c1729

Please sign in to comment.