Skip to content

Commit

Permalink
fix: keto-access-control.guard.ts type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemMakhaydinov authored and Nelfimov committed Dec 14, 2023
1 parent 3f1ffc4 commit c903d6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 66 deletions.
66 changes: 3 additions & 63 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/keto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@nestjs/common": "10.2.5",
"@nestjs/core": "10.1.3",
"@nestjs/core": "10.2.5",
"@nestjs/graphql": "12.0.9",
"@types/node": "20.6.2",
"apollo-server-core": "3.12.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/keto/src/guards/keto-access-control.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class KetoAccessControlGuard implements CanActivate {
async canActivate(context: ExecutionContext): Promise<boolean> {
const subject = this.getSubject(context)

const policy = this.reflector.get<any>(ACCESS_POLICY_METADATA, context.getHandler())
const policy = this.reflector.get(ACCESS_POLICY_METADATA, context.getHandler())

if (!policy) {
return true
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ __metadata:
resolution: "@atls/nestjs-keto@workspace:packages/keto"
dependencies:
"@nestjs/common": "npm:10.2.5"
"@nestjs/core": "npm:10.1.3"
"@nestjs/core": "npm:10.2.5"
"@nestjs/graphql": "npm:12.0.9"
"@oryd/keto-client": "npm:0.0.0-alpha.46"
"@types/node": "npm:20.6.2"
Expand Down

0 comments on commit c903d6f

Please sign in to comment.