From ba2d72b205c4f40fbc5f25af6d12c6434eb63293 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() })