fix: use db.set_value instead of set_value to avoid permission issues

This commit is contained in:
Valmik 2021-03-04 11:43:32 +00:00 committed by Parth Kharwar
parent a8d11f23d8
commit c098ed069a

View file

@ -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()