mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 08:03:49 +00:00
Modified composition policies to consider object instances instead of types. Fixes #669
This commit is contained in:
@ -60,11 +60,9 @@ define(
|
||||
policyService = this.policyService;
|
||||
|
||||
function validateLocation(parent) {
|
||||
var parentType = parent &&
|
||||
parent.getCapability('type');
|
||||
return parentType && policyService.allow(
|
||||
return parent && policyService.allow(
|
||||
"composition",
|
||||
parentType,
|
||||
parent,
|
||||
domainObject
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user