[fixed] Multiple Sessions are Always Denied
Casted frappe.db.get_system_setting('deny_multiple_sessions') to int, as a string it is always evaluated as True in the conditional statement and therefore it is always treated as multiple sessions are denied.
This commit is contained in:
parent
1743d1c5e5
commit
df085e56ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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 frappe.db.get_system_setting('deny_multiple_sessions')):
|
||||
if not (frappe.conf.get("deny_multiple_sessions") or int(frappe.db.get_system_setting('deny_multiple_sessions'))):
|
||||
return
|
||||
|
||||
if frappe.session.user != "Guest":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue