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

Improve UX: Forbidden requests should not redirect to login page #2270

Open
semekh opened this issue Aug 15, 2024 · 0 comments
Open

Improve UX: Forbidden requests should not redirect to login page #2270

semekh opened this issue Aug 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@semekh
Copy link

semekh commented Aug 15, 2024

Describe the bug
When the user opens a page they don't have access to, the app will redirect them to the login page. This is not optimal since the user does NOT need to re-auth. They don't have the required permission, and signing in again will only result in facing the same login page. Hence a broken loop.
As a side note, it's a bit disruptive too, since the sidebar does not exist on the login page, making it non-trivial to go back to the page they were before.

To Reproduce
Steps to reproduce the behavior:

  1. Sign in as a user that doesn't have the required permission to open e.g. a specific namespace
  2. Switch to that specific namespace
  3. You will get redirected to the login page

Expected behavior
The user should be made aware that they do not have the required permission, and they should probably ask their administrator to grant them the required permissions if they need to access this page.

Desktop (please complete the following information):

  • OS: Any
  • Browser: Any
  • Version: 2.28.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant