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