mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prevent viewers from going into edit mode
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user