fix(sessions): pass force parameter to get_sessions_to_clear()

Not sure why this didn't get committed with the original PR: #27542

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-09-02 17:52:47 +05:30
parent ca10a2859f
commit cd67eba32d
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -44,7 +44,7 @@ def clear_sessions(user=None, keep_current=False, force=False):
if force:
reason = "Force Logged out by the user"
for sid in get_sessions_to_clear(user, keep_current):
for sid in get_sessions_to_clear(user, keep_current, force):
delete_session(sid, reason=reason)