diff --git a/client/ayon_core/tools/loader/abstract.py b/client/ayon_core/tools/loader/abstract.py index c715b9ce99..14ed831d4b 100644 --- a/client/ayon_core/tools/loader/abstract.py +++ b/client/ayon_core/tools/loader/abstract.py @@ -349,9 +349,9 @@ class ProductTypesFilter: Defines the filtering for product types. """ - def __init__(self, product_types: List[str], is_include: bool): + def __init__(self, product_types: List[str], is_allow_list: bool): self.product_types: List[str] = product_types - self.is_include: bool = is_include + self.is_allow_list: bool = is_allow_list class _BaseLoaderController(ABC): diff --git a/client/ayon_core/tools/loader/control.py b/client/ayon_core/tools/loader/control.py index b83cb74e76..181e52218f 100644 --- a/client/ayon_core/tools/loader/control.py +++ b/client/ayon_core/tools/loader/control.py @@ -434,7 +434,7 @@ class LoaderController(BackendLoaderController, FrontendLoaderController): def get_product_types_filter(self, project_name): output = ProductTypesFilter( - is_include=False, + is_allow_list=False, product_types=[] ) # Without host is not determined context @@ -479,7 +479,7 @@ class LoaderController(BackendLoaderController, FrontendLoaderController): ) if profile: output = ProductTypesFilter( - is_include=profile["is_include"], + is_allow_list=profile["is_include"], product_types=profile["filter_product_types"] ) return output