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

(cherry picked from commit 3eaaa5d32d)
This commit is contained in:
Patrick O'Carroll
2018-04-26 14:58:34 +02:00
committed by Marcus Efraimsson
parent 790fd99676
commit 06d52adf4e
@@ -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" />