mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
bypass demo@erpnext.com from session deletion
This commit is contained in:
@@ -21,7 +21,7 @@ from webnotes.utils import load_json, cint, nowdate
|
||||
|
||||
|
||||
def check_demo():
|
||||
demo_user = 'demo@webnotestech.com'
|
||||
demo_user = 'demo@erpnext.com'
|
||||
if webnotes.session['user']==demo_user:
|
||||
webnotes.msgprint("Can't change in demo", raise_exception=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user