Revert "[fixed] Multiple Sessions are Always Denied"

This reverts commit df085e56ed.
This commit is contained in:
Javier Wong 2016-03-01 16:17:16 +08:00
parent df085e56ed
commit c4cee7b33f

View file

@ -159,7 +159,7 @@ class LoginManager:
def clear_active_sessions(self):
"""Clear other sessions of the current user if `deny_multiple_sessions` is not set"""
if not (frappe.conf.get("deny_multiple_sessions") or int(frappe.db.get_system_setting('deny_multiple_sessions'))):
if not (frappe.conf.get("deny_multiple_sessions") or frappe.db.get_system_setting('deny_multiple_sessions')):
return
if frappe.session.user != "Guest":