Skip to content

Commit

Permalink
chore: Verify edit permission for Horizontal filter bar (#21990)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido authored Nov 2, 2022
1 parent 4a330a3 commit 4e33235
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ const Header: FC<HeaderProps> = ({ toggleFiltersBar }) => {
const dashboardId = useSelector<RootState, number>(
({ dashboardInfo }) => dashboardInfo.id,
);
const canSetHorizontalFilterBar = isFeatureEnabled(
FeatureFlag.HORIZONTAL_FILTER_BAR,
);
const canSetHorizontalFilterBar =
canEdit && isFeatureEnabled(FeatureFlag.HORIZONTAL_FILTER_BAR);

return (
<Wrapper>
Expand Down

0 comments on commit 4e33235

Please sign in to comment.