mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 00:23:01 +00:00
Modified composition policies to consider object instances instead of types. Fixes #669
This commit is contained in:
@ -43,9 +43,6 @@ define(
|
||||
}
|
||||
|
||||
ComposeActionPolicy.prototype.allowComposition = function (containerObject, selectedObject) {
|
||||
// Get the object types involved in the compose action
|
||||
var containerType = containerObject &&
|
||||
containerObject.getCapability('type');
|
||||
|
||||
// Get a reference to the policy service if needed...
|
||||
this.policyService = this.policyService || this.getPolicyService();
|
||||
@ -54,7 +51,7 @@ define(
|
||||
return containerObject.getId() !== selectedObject.getId() &&
|
||||
this.policyService.allow(
|
||||
'composition',
|
||||
containerType,
|
||||
containerObject,
|
||||
selectedObject
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user