Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix: dashboard edit button (again) (apache#11029)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored Sep 23, 2020
1 parent dc76a26 commit 8e9b0b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset-frontend/src/dashboard/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,12 @@ class Header extends React.PureComponent {
/>
)}

{!editMode && (
{!editMode && userCanEdit && (
<span
role="button"
tabIndex={0}
className="action-button"
onClick={this.toggleEditMode}
disabled={!userCanEdit}
>
<Icon name="pencil" />
</span>
Expand Down

0 comments on commit 8e9b0b3

Please sign in to comment.