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

Remove account terms code unreachable for unregistered users #5506

Merged

Conversation

AntonKhorev
Copy link
Collaborator

@AntonKhorev AntonKhorev commented Jan 16, 2025

After the terms page was taken out of the signup process, its controller still had the code for this kind of use by unregistered users. Later I moved the page to /account/terms which implies that its only for active users, but I still haven't removed the code.

Here I'm actually removing the unused code. Things like redirect_to login_path(:referer => request.fullpath) if current_user.nil? are handled by abilities, only active users are able to access the terms.

@AntonKhorev AntonKhorev force-pushed the account-terms-for-active-users branch from e35760e to 87e7f88 Compare January 16, 2025 16:06
@tomhughes
Copy link
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit dfc843e into openstreetmap:master Jan 16, 2025
22 checks passed
@AntonKhorev AntonKhorev deleted the account-terms-for-active-users branch January 16, 2025 23: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