fixed so user who can edit dashboard can edit row, fixes #11466

This commit is contained in:
Patrick O'Carroll 2018-04-23 17:44:29 +02:00
parent 3a48ea8dde
commit 3eaaa5d32d

View File

@ -95,7 +95,7 @@ export class DashboardRow extends React.Component<DashboardRowProps, any> {
{title}
<span className="dashboard-row__panel_count">({hiddenPanels} hidden panels)</span>
</a>
{config.bootData.user.orgRole !== 'Viewer' && (
{this.dashboard.meta.canEdit === true && (
<div className="dashboard-row__actions">
<a className="pointer" onClick={this.openSettings}>
<i className="fa fa-cog" />