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

fix(ui): public users unable to log out #10188

Merged
merged 9 commits into from
Dec 27, 2024
Merged

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Dec 26, 2024

Fixes #10180. When logged in as an unauthorized user who cannot access the admin panel, the user is unable to log out through the prompted /admin/logout page. This was because that page was using an incorrect API endpoint, reading from admin.user instead of user.collection when formatting the route. This page was also able to get stuck in an infinite loading state when attempting to log out without any user at all. Now, public users can properly log out and then back in with another user who might have access. The messaging around this was also misleading. Instead of displaying the "Unauthorized, you must be logged in to make this request" message, we now display a new "Unauthorized, this user does not have access to the admin panel" message for added clarity.

@jacobsfletch jacobsfletch changed the title Fix/public user logout fix(ui): public users unable to log out Dec 26, 2024
@jacobsfletch jacobsfletch merged commit f3aebe3 into main Dec 27, 2024
70 checks passed
@jacobsfletch jacobsfletch deleted the fix/public-user-logout branch December 27, 2024 03:52
Copy link
Contributor

🚀 This is included in version v3.12.0

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.

Unable to Access Login Page While Logged in as Unauthorized User
1 participant