Skip to content

AO3-7267 Return 404 on the preferences page for nonexistent users#5726

Open
CelineB-sudo wants to merge 2 commits intootwcode:masterfrom
CelineB-sudo:AO3-7267
Open

AO3-7267 Return 404 on the preferences page for nonexistent users#5726
CelineB-sudo wants to merge 2 commits intootwcode:masterfrom
CelineB-sudo:AO3-7267

Conversation

@CelineB-sudo
Copy link
Copy Markdown

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-7267

Purpose

What does this PR do?
When a user or admin visits the preferences page of a nonexistent user, they are redirected to the "Not Found" page.
Users who are logged in can still access their own preferences page.

Credit

What name and pronouns should we use to credit you in the Archive of Our Own's Release Notes?
Céline Bertaud she/her

@CelineB-sudo CelineB-sudo marked this pull request as ready for review April 13, 2026 08:17
Copy link
Copy Markdown
Collaborator

@sarken sarken left a comment

Choose a reason for hiding this comment

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

Hi, Céline Bertaud!

Thank you so much for this pull request. It looks good to me except for a tiny nitpick about the test phrasing, so I've marked it Ready to Merge! If you have a second to address the phrasing issue, though, we'd appreciate it.

If you'd like the ability to comment on, assign, and transition issues in the future, you're welcome to create a Jira account! It makes things a bit easier for us on the organizational side if the Full Name on your Jira account either closely matches the name you'd like us to credit in the release notes or includes it in parentheses, e.g. "Nickname (CREDIT NAME)."

Once you've done that (or if you've already done it -- Jira has been unreliable about showing us new accounts in the admin panel lately), you can either reply here or send an email to otw-coders@transformativeworks.org with your account name and email address and we'll set up the permissions for you.

Thanks again for contributing! If you have any questions, you can contact us at the same email address listed above.

it_behaves_like "an action only authorized admins can access", authorized_roles: read_roles
end

context "as nonexistent user" do
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should probably be "for a nonexistent user" -- when we say "as [something]", we usually mean the person trying to access the page (e.g., "as admin" means trying to access a preferences page while logged in as an admin).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The phrasing has been fixed! Here's the email adress to use to find the Jira account : celine.bertaud0@gmail.com

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for making the fix! Your Jira account permissions should be all set next time you log in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants