renable worker protection

This commit is contained in:
Martin McKeaveney 2021-05-05 20:59:16 +01:00
parent 4377b41f40
commit 4bc1a7dc3c
1 changed files with 3 additions and 3 deletions

View File

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