Skip to content

Commit

Permalink
fix: [dashboard] should not show edit button when user has no edit pe…
Browse files Browse the repository at this point in the history
…rmit (#11024)
  • Loading branch information
Grace Guo authored Sep 23, 2020
1 parent 7549dad commit 0409393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset-frontend/src/dashboard/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ class Header extends React.PureComponent {
tabIndex={0}
className="action-button"
onClick={this.toggleEditMode}
disabled={!userCanEdit}
>
<Icon name="pencil" />
</span>
Expand Down

0 comments on commit 0409393

Please sign in to comment.