From c098ed069ae2abce3e5b641786b7af51a0d449f4 Mon Sep 17 00:00:00 2001 From: Valmik Date: Thu, 4 Mar 2021 11:43:32 +0000 Subject: [PATCH] fix: use db.set_value instead of set_value to avoid permission issues --- .../desk/doctype/notification_settings/notification_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/desk/doctype/notification_settings/notification_settings.py b/frappe/desk/doctype/notification_settings/notification_settings.py index 3ee68c440c..0831f4683d 100644 --- a/frappe/desk/doctype/notification_settings/notification_settings.py +++ b/frappe/desk/doctype/notification_settings/notification_settings.py @@ -45,7 +45,7 @@ def create_notification_settings(user): def enable_disable_notifications(user, enabled): if frappe.db.exists("Notification Settings", user): - frappe.set_value("Notification Settings", user, 'enabled', enabled) + frappe.db.set_value("Notification Settings", user, 'enabled', enabled) @frappe.whitelist()