1
0
Fork 0
mirror of synced 2024-10-02 01:56:57 +13:00

renable worker protection

This commit is contained in:
Martin McKeaveney 2021-05-05 20:59:16 +01:00
parent 39b293aa9d
commit ba2d72b205

View file

@ -30,9 +30,9 @@ router
.use(buildAuthMiddleware(NO_AUTH_ENDPOINTS)) .use(buildAuthMiddleware(NO_AUTH_ENDPOINTS))
// for now no public access is allowed to worker (bar health check) // for now no public access is allowed to worker (bar health check)
.use((ctx, next) => { .use((ctx, next) => {
// if (!ctx.isAuthenticated) { if (!ctx.isAuthenticated) {
// ctx.throw(403, "Unauthorized - no public worker access") ctx.throw(403, "Unauthorized - no public worker access")
// } }
return next() return next()
}) })