fix: ignore permission to update call log (#26797)

Backport of #26112
#no-docs
This commit is contained in:
Dany Robert 2021-08-04 10:01:44 +05:30 committed by GitHub
parent 1b9a5c851d
commit 9f94c19752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ def link_existing_conversations(doc, state):
for log in logs:
call_log = frappe.get_doc('Call Log', log)
call_log.add_link(link_type=doc.doctype, link_name=doc.name)
call_log.save()
call_log.save(ignore_permissions=True)
frappe.db.commit()
except Exception:
frappe.log_error(title=_('Error during caller information update'))