fix: [dashboard] should not show edit button when user has no edit permit (#11024)
This commit is contained in:
parent
7549dad12d
commit
0409393a4e
|
|
@ -443,6 +443,7 @@ class Header extends React.PureComponent {
|
|||
tabIndex={0}
|
||||
className="action-button"
|
||||
onClick={this.toggleEditMode}
|
||||
disabled={!userCanEdit}
|
||||
>
|
||||
<Icon name="pencil" />
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue