fix(realtime): Restrict updates to only last modified or current user (#33034)

(cherry picked from commit dd2493a541)
This commit is contained in:
gavin
2022-11-18 17:17:54 +05:30
committed by Mergify
parent f2283546b5
commit 9e8a8356e9
7 changed files with 9 additions and 7 deletions

View File

@@ -146,7 +146,9 @@ class ImportSupplierInvoice(Document):
def publish(self, title, message, count, total):
frappe.publish_realtime(
"import_invoice_update", {"title": title, "message": message, "count": count, "total": total}
"import_invoice_update",
{"title": title, "message": message, "count": count, "total": total},
user=self.modified_by,
)