Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MER-2920] Extend live session plugs #4562

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

nicocirio
Copy link
Contributor

Link to the ticket

Both AppSignal errors had similar root causes. In both cases, the used live plugs were expecting a current_user/author_id, but were not handling cases where those values were not yet in the session. So, the fix was to handle those cases and redirect the user to the login page.

On the other hand, the SetCtx plug was incorrectly assuming there was already a user set in the assigns and, if this plug is not used after the SetCurrentUser plug, the mentioned assigned may not exist.
The SetCtx module docs were expanded to explain this case.

@darrensiegel darrensiegel merged commit b212065 into hotfix-v0.26.1 Jan 18, 2024
5 checks passed
@darrensiegel darrensiegel deleted the MER2920-extend-live-session-plugs branch January 18, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants