-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[Bug] admin/info route renders error loading pages for "user" role users #21216
Comments
I'm working on that :) |
there's no need to run side effects(use effect) if the user role is "user" |
@yash-rajpal according to your pr whether a user is authorized or not, it will request server for statistics and calls method instances/get, where the server will throw an error for that method and bad request for API call (check your serverlog & devtools), if user role is "user" which gets catched and component renders again unwantedly. my pr #21221 solves this. |
Description:
admin/info route for "user" roles renders error loading pages instead of "you are not authorized to view this page".
Steps to reproduce:
Expected behavior:
the response must be you are not authorized to view this page
Actual behavior:
Server Setup Information:
Client Setup Information
Additional context
the actual behaviour should only happen if there's an error while getting responses but the API throws an error for the "user" role type which has been caught by the side effect to re-render the component.
The text was updated successfully, but these errors were encountered: