Skip to content

Commit

Permalink
Remove duplicated call to authPolicy
Browse files Browse the repository at this point in the history
Not sure how I ran across this, but it seems to be erroneous. Let me know if I am missing something, though. :)
  • Loading branch information
MichaelDoyle authored Nov 21, 2024
1 parent 5be16f0 commit f1e3a51
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions js/core/src/flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,19 +349,6 @@ export class Flow<
return;
}

try {
await this.authPolicy?.(auth, input);
} catch (e: any) {
const respBody = {
error: {
status: 'PERMISSION_DENIED',
message: e.message || 'Permission denied to resource',
},
};
response.status(403).send(respBody).end();
return;
}

if (request.get('Accept') === 'text/event-stream' || stream === 'true') {
response.writeHead(200, {
'Content-Type': 'text/plain',
Expand Down

0 comments on commit f1e3a51

Please sign in to comment.