diff --git a/oarepo_communities/services/components/include.py b/oarepo_communities/services/components/include.py index 5c7377b..f90f317 100644 --- a/oarepo_communities/services/components/include.py +++ b/oarepo_communities/services/components/include.py @@ -2,6 +2,7 @@ from oarepo_communities.errors import MissingDefaultCommunityError from oarepo_communities.proxies import current_oarepo_communities +from ..permissions.generators import convert_community_ids_to_uuid class CommunityInclusionComponent(ServiceComponent): @@ -14,12 +15,9 @@ def create(self, identity, data=None, record=None, **kwargs): "Default community not defined in input." ) - community_inclusion_service = ( - current_oarepo_communities.community_inclusion_service - ) - community_inclusion_service.include( + current_oarepo_communities.community_inclusion_service.include( record, - community_id, + convert_community_ids_to_uuid(community_id), record_service=self.service, uow=self.uow, ) diff --git a/setup.cfg b/setup.cfg index 03e7542..82dc023 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-communities -version = 5.0.9 +version = 5.0.10 description = authors = Ronald Krist readme = README.md