-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
MaybeCategoryPanel: Avoid 403 requests for users with low permissions #46349
Conversation
Size Change: +25 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
Should we add |
@ntsekouras, I thought about that, but I'm sure if The root index is supposed to include a small amount of data about the site. However, without more granular control over site settings, we'll end up duplicating everything in the site index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's ship and handle properly when settings
endpoint is updated. Thanks George!
Thanks for voicing an important question and the review, Nik! |
What?
PR fixes failing 403 requests in the
MaybeCategoryPanel
component for low permission roles like Contributor and Author.Why?
Currently, the panel isn't displayed for Contributor and Author roles. This is because these roles don't have permission to read the site settings, but requests are still made, failing with a 403 error code.
See #42612.
Testing Instructions
Testing Instructions for Keyboard
No UI changes.