From 4bc1a7dc3cb6051d490afd8596931f60af793f1c Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 5 May 2021 20:59:16 +0100 Subject: [PATCH] renable worker protection --- packages/worker/src/api/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/worker/src/api/index.js b/packages/worker/src/api/index.js index e351b1d12d..d0e60ffcd2 100644 --- a/packages/worker/src/api/index.js +++ b/packages/worker/src/api/index.js @@ -30,9 +30,9 @@ router .use(buildAuthMiddleware(NO_AUTH_ENDPOINTS)) // for now no public access is allowed to worker (bar health check) .use((ctx, next) => { - // if (!ctx.isAuthenticated) { - // ctx.throw(403, "Unauthorized - no public worker access") - // } + if (!ctx.isAuthenticated) { + ctx.throw(403, "Unauthorized - no public worker access") + } return next() })