Skip to content

Commit

Permalink
[backend] fix system and individual in Report not shared (#8333)
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Oct 14, 2024
1 parent e25d983 commit 35b0382
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,9 @@ export const objectOrganization: RefAttribute = {
multiple: true,
upsert: true,
isRefExistingForTypes(this, fromType, toType) {
return !(fromType === ENTITY_TYPE_EVENT || isStixDomainObjectIdentity(fromType)
return !(fromType === ENTITY_TYPE_EVENT
|| fromType === ENTITY_TYPE_IDENTITY_ORGANIZATION
|| fromType === ENTITY_TYPE_IDENTITY_SECTOR
|| isStixDomainObjectLocation(fromType))
&& this.toTypes.includes(toType);
},
Expand Down

0 comments on commit 35b0382

Please sign in to comment.