renable worker protection
This commit is contained in:
parent
4377b41f40
commit
4bc1a7dc3c
|
@ -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()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue