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 15, 2024
1 parent 66fa73c commit 7d87c76
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 7d87c76

Please sign in to comment.