diff --git a/cds/modules/invenio_deposit/api.py b/cds/modules/invenio_deposit/api.py index 408c0f8f6..82fafe42b 100644 --- a/cds/modules/invenio_deposit/api.py +++ b/cds/modules/invenio_deposit/api.py @@ -188,6 +188,8 @@ def merge_with_published(self): args = [lca.dumps(), first.dumps(), self.dumps()] for arg in args: del arg["$schema"], arg["_deposit"] + # pop optional removed key `current_user_mail` when present + arg.get("_cds", {}).pop("current_user_mail", None) args.append({}) m = Merger(*args) try: