Skip to content

Commit

Permalink
Verify edit permission
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Nov 1, 2022
1 parent dc73995 commit b4f27c7
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 b4f27c7

Please sign in to comment.