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:
parent
ca10a2859f
commit
cd67eba32d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue