users - list condition

This commit is contained in:
Rushabh Mehta 2012-03-01 13:47:51 +05:30
parent df33cb3a39
commit b6023a4d34

View File

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