mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
users - list condition
This commit is contained in:
@@ -48,7 +48,8 @@ def get_list(arg=None):
|
|||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def get_active_users(arg=None):
|
def get_active_users(arg=None):
|
||||||
return webnotes.conn.sql("""select name from tabProfile
|
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')
|
name not in ('Administrator', 'Guest')
|
||||||
order by first_name""", as_dict=1)
|
order by first_name""", as_dict=1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user