fix(fe): hide automations tab from workspace guests
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user