Commit 2c3aad78 by Torkel Ödegaard

Fix in unsaved changes service

parent ece9e8dc
......@@ -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; }
......
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