Disallow attaching reviewables to reviewables for now

This commit is contained in:
Roy Nieterau 2025-03-05 17:39:41 +01:00
parent 5bb09d5256
commit d887a21bf9

View file

@ -98,6 +98,11 @@ class AttachReviewables(
for other_instance in create_context.instances:
if other_instance == instance:
continue
# Do not allow attaching to other reviewable instances
if other_instance.data["productType"] in cls.families:
continue
items.append(
{
"label": other_instance.label,