Browse Source
Merge pull request #1485 from Budibase/fix/small-fixes
fixes from PR
gh-pages
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
packages/builder/src/components/integration/QueryEditor.svelte
-
packages/worker/src/api/index.js
|
|
@ -117,7 +117,7 @@ |
|
|
readOnly, |
|
|
readOnly, |
|
|
autoCloseBrackets: true, |
|
|
autoCloseBrackets: true, |
|
|
autoCloseTags: true, |
|
|
autoCloseTags: true, |
|
|
theme: THEMES.DARK, |
|
|
theme: $themeStore.theme.includes("light") ? THEMES.LIGHT : THEMES.DARK, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!tab) |
|
|
if (!tab) |
|
|
|
|
|
@ -53,9 +53,9 @@ router |
|
|
.use(buildAuthMiddleware(PUBLIC_ENDPOINTS)) |
|
|
.use(buildAuthMiddleware(PUBLIC_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() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|