From b6023a4d3428c66b937d78323d97958ea29bc5cc Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 1 Mar 2012 13:47:51 +0530 Subject: [PATCH] users - list condition --- erpnext/utilities/page/messages/messages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/utilities/page/messages/messages.py b/erpnext/utilities/page/messages/messages.py index 8e92ff9ec9..b28299164c 100644 --- a/erpnext/utilities/page/messages/messages.py +++ b/erpnext/utilities/page/messages/messages.py @@ -48,7 +48,8 @@ def get_list(arg=None): @webnotes.whitelist() def get_active_users(arg=None): return webnotes.conn.sql("""select name from tabProfile - where enabled=1 and + where ifnull(enabled,0)=1 and + docstatus < 2 and name not in ('Administrator', 'Guest') order by first_name""", as_dict=1)