"upload_files" capability and Image relative blocks #3672
Labels
[Feature] Media
Anything that impacts the experience of managing media
REST API Interaction
Related to REST API
[Status] In Progress
Tracking issues with work in progress
Milestone
Issue Overview
Gutenberg version 1.7.0
When a contributor uses Gutenberg he can use Image relative blocks. When he tries to use it as this role hasn't got the
upload_files
capability, the REST reply to site.url/wp-json/wp/v2/media isrest_cannot_create
(403).Steps to Reproduce (for bugs)
Chrome Version 62.0.3202.94
Expected Behavior
Image/files relative blocks should only show
if ( current_user_can( 'upload_files' ) )
Current Behavior
Image/files relative blocks are showing no matter the "upload_files" capability of the logged in user.
Possible Solution
Screenshots / Video
Here is some oxygen 😉 https://cldup.com/K8qYyaHWbI.mp4
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: