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