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

Redirect unauthenticated users from checkouts page #4988

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Dec 1, 2022

Fixes #4987

This adds a safe navigation operator to the methods that assemble the current user's list of checkouts. Doing this prevents a nil class error for unauthenticated users and allows the errors/restricted_pid partial to render, directing the user to login to access the content.

Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@cjcolvar cjcolvar merged commit ae87316 into develop Dec 2, 2022
@cjcolvar cjcolvar deleted the cdl_non-authed-user branch December 2, 2022 16:45
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.

2 participants