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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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>