-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
MediaReplaceFlow: Check permissions before displaying the 'Media Library' menu item #49298
Conversation
Size Change: +42 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
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.
LGTM, thanks!
Flaky tests detected in 4d8d574. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4498175366
|
What?
PR adds permissions checks before displaying the 'Media Library' menu item in MediaReplaceFlow.
Why?
Users without
upload_files
permission can select or upload images in Media Library.How?
I moved the
MediaUpload
component insideMediaUploadCheck
.Testing Instructions
Screenshots or screencast