Skip to content

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 and auxten committed Nov 20, 2020
1 parent b4b88dc commit a79ab48
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 a79ab48

Please sign in to comment.