mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Disallow attaching reviewables to reviewables for now
This commit is contained in:
parent
5bb09d5256
commit
d887a21bf9
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue