1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Merge branch 'next' of github.com:Budibase/budibase into feature/draft-apps

This commit is contained in:
mike12345567 2021-05-12 13:59:59 +01:00
commit abeb78d914
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()
})