Fix in unsaved changes service

This commit is contained in:
Torkel Ödegaard 2015-05-06 07:59:47 +02:00
parent ece9e8dcea
commit 2c3aad785d

View File

@ -51,7 +51,7 @@ function(angular, _) {
// for some dashboards and users // for some dashboards and users
// changes should be ignored // changes should be ignored
p.ignoreChanges = function() { p.ignoreChanges = function() {
if (!this.original) { return false; } if (!this.original) { return true; }
if (!contextSrv.isEditor) { return true; } if (!contextSrv.isEditor) { return true; }
if (!this.current || !this.current.meta) { return true; } if (!this.current || !this.current.meta) { return true; }