From b4f27c7de8fbef6b152bc6b9b24733fbad41806e Mon Sep 17 00:00:00 2001 From: geido Date: Tue, 1 Nov 2022 15:28:27 +0200 Subject: [PATCH] Verify edit permission --- .../components/nativeFilters/FilterBar/Header/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx index a9ae82cc7c7ce..1f5440d63948e 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx @@ -93,9 +93,8 @@ const Header: FC = ({ toggleFiltersBar }) => { const dashboardId = useSelector( ({ dashboardInfo }) => dashboardInfo.id, ); - const canSetHorizontalFilterBar = isFeatureEnabled( - FeatureFlag.HORIZONTAL_FILTER_BAR, - ); + const canSetHorizontalFilterBar = + canEdit && isFeatureEnabled(FeatureFlag.HORIZONTAL_FILTER_BAR); return (