[Composition] Update specs
Update specs to reflect usage of the add method in the composition capability.
This commit is contained in:
@@ -45,7 +45,7 @@ define(
|
||||
if (parentCandidate.getId() === object.getId()) {
|
||||
return false;
|
||||
}
|
||||
if (parentCandidate.getModel().composition.indexOf(object.getId()) !== -1) {
|
||||
if ((parentCandidate.getModel().composition || []).indexOf(object.getId()) !== -1) {
|
||||
return false;
|
||||
}
|
||||
return this.policyService.allow(
|
||||
|
||||
Reference in New Issue
Block a user