Remove update screen in the cloud

This commit is contained in:
Rory Powell 2021-10-07 15:41:53 +01:00
parent a23ba5eb1c
commit 815f2c98d3
2 changed files with 11 additions and 6 deletions

View File

@ -46,11 +46,16 @@
title: "Theming", title: "Theming",
href: "/builder/portal/settings/theming", href: "/builder/portal/settings/theming",
}, },
{
title: "Updates",
href: "/builder/portal/settings/update",
},
]) ])
if (!$adminStore.cloud) {
menu = menu.concat([
{
title: "Updates",
href: "/builder/portal/settings/update",
},
])
}
} else { } else {
menu = menu.concat([ menu = menu.concat([
{ {

View File

@ -10,14 +10,14 @@
Label, Label,
} from "@budibase/bbui" } from "@budibase/bbui"
import api from "builderStore/api" import api from "builderStore/api"
import { auth } from "stores/portal" import { auth, admin } from "stores/portal"
import { redirect } from "@roxi/routify" import { redirect } from "@roxi/routify"
let version let version
// Only admins allowed here // Only admins allowed here
$: { $: {
if (!$auth.isAdmin) { if (!$auth.isAdmin || $admin.cloud) {
$redirect("../../portal") $redirect("../../portal")
} }
} }