From 47a72c3e425b9c5bcb3ba2893e602bf6fbdfe23b Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 28 Feb 2023 18:25:29 +0100 Subject: [PATCH] fix(dashboard): Don't show user without edit perm cross filters checkbox --- .../nativeFilters/FilterBar/FilterBarSettings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBarSettings/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBarSettings/index.tsx index dda3b7e47ba08..75572d74e51a5 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBarSettings/index.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBarSettings/index.tsx @@ -144,7 +144,7 @@ const FilterBarSettings = () => { ); const menuItems: DropDownSelectableProps['menuItems'] = []; - if (isCrossFiltersFeatureEnabled) { + if (isCrossFiltersFeatureEnabled && canEdit) { menuItems.unshift({ key: crossFiltersMenuKey, label: crossFiltersMenuItem,