From ec8881a475f05947984079bed46fc492fae672d5 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 17 Mar 2016 19:17:02 +0530 Subject: [PATCH] [fix] Don't notify to all system users from communication --- frappe/desk/page/messages/messages.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frappe/desk/page/messages/messages.py b/frappe/desk/page/messages/messages.py index 60780fc9a4..a6db5a06fb 100644 --- a/frappe/desk/page/messages/messages.py +++ b/frappe/desk/page/messages/messages.py @@ -3,10 +3,8 @@ from __future__ import unicode_literals import frappe -from frappe import _ from frappe.desk.notifications import delete_notification_count_for from frappe.core.doctype.user.user import STANDARD_USERS -from frappe.utils.user import get_enabled_system_users from frappe.utils import cint @frappe.whitelist() @@ -88,10 +86,7 @@ def post(txt, contact, parenttype=None, notify=False, subject=None): delete_notification_count_for("Messages") if notify and cint(notify): - if contact==frappe.session.user: - _notify([user.name for user in get_enabled_system_users()], txt) - else: - _notify(contact, txt, subject) + _notify(contact, txt, subject) return d