mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix in unsaved changes service
This commit is contained in:
parent
ece9e8dcea
commit
2c3aad785d
@ -51,7 +51,7 @@ function(angular, _) {
|
||||
// for some dashboards and users
|
||||
// changes should be ignored
|
||||
p.ignoreChanges = function() {
|
||||
if (!this.original) { return false; }
|
||||
if (!this.original) { return true; }
|
||||
if (!contextSrv.isEditor) { return true; }
|
||||
if (!this.current || !this.current.meta) { return true; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user