Merge pull request #1487 from nasa/open1483

[Persistence] Prevent editing of objects that cannot be saved. Fixes #1483
This commit is contained in:
Pete Richards
2017-04-05 14:39:37 -07:00
committed by GitHub
26 changed files with 396 additions and 45 deletions

View File

@@ -47,7 +47,7 @@ define(
}
return this.policyService.allow(
"composition",
parentCandidate.getCapability('type'),
parentCandidate,
object
);
};

View File

@@ -51,7 +51,7 @@ define(
}
return this.policyService.allow(
"composition",
parentCandidate.getCapability('type'),
parentCandidate,
object
);
};

View File

@@ -55,7 +55,7 @@ define(
}
return this.policyService.allow(
"composition",
parentCandidate.getCapability('type'),
parentCandidate,
object
);
};

View File

@@ -103,7 +103,7 @@ define(
validate();
expect(policyService.allow).toHaveBeenCalledWith(
"composition",
parentCandidate.capabilities.type,
parentCandidate,
object
);
});

View File

@@ -113,7 +113,7 @@ define(
validate();
expect(mockPolicyService.allow).toHaveBeenCalledWith(
"composition",
parentCandidate.capabilities.type,
parentCandidate,
object
);
});

View File

@@ -123,7 +123,7 @@ define(
validate();
expect(policyService.allow).toHaveBeenCalledWith(
"composition",
parentCandidate.capabilities.type,
parentCandidate,
object
);
});