From 85bc555f5165cb70e8f6ef595dbd7ecb42301353 Mon Sep 17 00:00:00 2001 From: Assem Marwan Date: Sat, 2 Apr 2022 08:32:42 +0400 Subject: [PATCH] fix(Broadcast Message): Whitelist send method --- .../doctype/broadcast_message/broadcast_message.py | 1 + 1 file changed, 1 insertion(+) diff --git a/renovation_core/renovation_core/doctype/broadcast_message/broadcast_message.py b/renovation_core/renovation_core/doctype/broadcast_message/broadcast_message.py index e77932e..a804333 100644 --- a/renovation_core/renovation_core/doctype/broadcast_message/broadcast_message.py +++ b/renovation_core/renovation_core/doctype/broadcast_message/broadcast_message.py @@ -26,6 +26,7 @@ def validate_targets(self): elif t.type == "FCM Topic" and not t.fcm_topic: frappe.throw("FCM Topic is mandatory") + @frappe.whitelist() def send(self): t = frappe._dict(