Merge pull request #1485 from Budibase/fix/small-fixes

fixes from PR
This commit is contained in:
Martin McKeaveney 2021-05-12 12:42:13 +01:00 committed by GitHub
commit 2bfedd1162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

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