Browse Source

fixes from PR

pull/1485/head
Martin McKeaveney 5 years ago
parent
commit
56d117c819
  1. 2
      packages/builder/src/components/integration/QueryEditor.svelte
  2. 6
      packages/worker/src/api/index.js

2
packages/builder/src/components/integration/QueryEditor.svelte

@ -117,7 +117,7 @@
readOnly,
autoCloseBrackets: true,
autoCloseTags: true,
theme: THEMES.DARK,
theme: $themeStore.theme.includes("light") ? THEMES.LIGHT : THEMES.DARK,
}
if (!tab)

6
packages/worker/src/api/index.js

@ -53,9 +53,9 @@ router
.use(buildAuthMiddleware(PUBLIC_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()
})

Loading…
Cancel
Save