fix(fe): hide automations tab from workspace guests

This commit is contained in:
andrewwallacespeckle
2025-05-21 13:37:31 +02:00
parent f8701d8cd3
commit 3343e24da3
@@ -241,7 +241,11 @@ const pageTabItems = computed((): LayoutPageTabItem[] => {
}
]
if (isAutomateEnabled.value && project.value?.workspace) {
if (
isAutomateEnabled.value &&
project.value?.workspace &&
project.value?.workspace.role !== Roles.Workspace.Guest
) {
items.push({
title: 'Automations',
id: 'automations'