Skip to content

Commit

Permalink
fix: compatibility with old session IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Apr 9, 2024
1 parent 4037c29 commit 7ad592c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Added
Fixed
^^^^^
- HTMX and JAVASCRIPT configuration settings.
- Compatibility with old sessions IDs.

[0.0.49] - 2024-04-08
---------------------
Expand Down
2 changes: 1 addition & 1 deletion canaille/app/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def current_user():
return g.user

for user_id in session.get("user_id", [])[::-1]:
user = models.User.get(id=user_id)
user = models.User.get(user_id)
if user and (
not current_app.backend.has_account_lockability() or not user.locked
):
Expand Down

0 comments on commit 7ad592c

Please sign in to comment.