bypass demo@erpnext.com from session deletion

This commit is contained in:
Nabin Hait
2012-11-05 18:58:15 +05:30
parent 9c968f339b
commit 8bbc5a2b11
2 changed files with 3 additions and 3 deletions

View File

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