From f1e3a512b274461fa6efa66f7c7a046dfd75473b Mon Sep 17 00:00:00 2001 From: Michael Doyle Date: Thu, 21 Nov 2024 09:49:27 -0500 Subject: [PATCH] Remove duplicated call to authPolicy Not sure how I ran across this, but it seems to be erroneous. Let me know if I am missing something, though. :) --- js/core/src/flow.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/js/core/src/flow.ts b/js/core/src/flow.ts index 8e64dbe9a..6a9948be6 100644 --- a/js/core/src/flow.ts +++ b/js/core/src/flow.ts @@ -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',