Browse Source

Prevent viewers from going into edit mode

Torkel Ödegaard 7 years ago
parent
commit
da53103281
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/features/dashboard/containers/DashboardPage.tsx

+ 1 - 1
public/app/features/dashboard/containers/DashboardPage.tsx

@@ -130,7 +130,7 @@ export class DashboardPage extends PureComponent<Props, State> {
     if (panel) {
       dashboard.setViewMode(panel, urlFullscreen, urlEdit);
       this.setState({
-        isEditing: urlEdit,
+        isEditing: urlEdit && dashboard.meta.canEdit,
         isFullscreen: urlFullscreen,
         fullscreenPanel: panel,
         rememberScrollTop: this.state.scrollTop,