fix: [dashboard] should not show edit button when user has no edit permit (#11024)

This commit is contained in:
Grace Guo
2020-09-23 10:55:32 -07:00
committed by GitHub
parent 7549dad12d
commit 0409393a4e

View File

@@ -443,6 +443,7 @@ class Header extends React.PureComponent {
tabIndex={0}
className="action-button"
onClick={this.toggleEditMode}
disabled={!userCanEdit}
>
<Icon name="pencil" />
</span>