Skip to content

Commit

Permalink
fix: rm access/claim disabling in prod (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo authored Mar 23, 2023
1 parent 117e953 commit 5bfb7c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"separate-pull-requests": true,
"packages": {
"packages/access-client": {},
"packages/access-api": {
"release-as": "5.1.2"
},
"packages/access-api": {},
"packages/capabilities": {
"release-as": "4.0.1"
},
Expand Down
5 changes: 0 additions & 5 deletions packages/access-api/src/service/access-claim.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ import { collect } from 'streaming-iterables'
export function accessClaimProvider(ctx) {
const handleClaimInvocation = createAccessClaimHandler(ctx)
return Server.provide(claim, async ({ invocation }) => {
// disable until hardened in test/staging
if (ctx.config.ENV === 'production') {
throw new Error(`access/claim invocation handling is not enabled`)
}

return handleClaimInvocation(invocation)
})
}
Expand Down

0 comments on commit 5bfb7c9

Please sign in to comment.