Skip to content

Commit

Permalink
moderation: refactor role name to id.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo committed Aug 9, 2023
1 parent 7694e84 commit 1350aec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_requests/services/user_moderation/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1350aec

Please sign in to comment.