diff --git a/invenio_requests/services/user_moderation/service.py b/invenio_requests/services/user_moderation/service.py index 8a8ecf14..e9400d88 100644 --- a/invenio_requests/services/user_moderation/service.py +++ b/invenio_requests/services/user_moderation/service.py @@ -41,8 +41,8 @@ def request_moderation(self, identity, user_id, data=None, uow=None, **kwargs): topic = {"user": str(user_id)} # Receiver can be configured, by default send the request to users with moderation role - receiver = {"group": role.name} # TODO to be changed to role id - creator = {"group": role.name} # TODO to be changed to role id + receiver = {"group": role.id} + creator = {"group": role.id} request_item = self.requests_service.create( identity,