Commit da531032 by Torkel Ödegaard

Prevent viewers from going into edit mode

parent aa2bf07c
...@@ -130,7 +130,7 @@ export class DashboardPage extends PureComponent<Props, State> { ...@@ -130,7 +130,7 @@ export class DashboardPage extends PureComponent<Props, State> {
if (panel) { if (panel) {
dashboard.setViewMode(panel, urlFullscreen, urlEdit); dashboard.setViewMode(panel, urlFullscreen, urlEdit);
this.setState({ this.setState({
isEditing: urlEdit, isEditing: urlEdit && dashboard.meta.canEdit,
isFullscreen: urlFullscreen, isFullscreen: urlFullscreen,
fullscreenPanel: panel, fullscreenPanel: panel,
rememberScrollTop: this.state.scrollTop, rememberScrollTop: this.state.scrollTop,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment