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

Cannot use cover image or gallery blocks with roles such as author in a single install or editor/admin in multisite #10076

Closed
miguelurtado opened this issue Sep 20, 2018 · 4 comments
Labels
[Feature] Blocks Overall functionality of blocks [Type] Bug An existing feature does not function as intended

Comments

@miguelurtado
Copy link

Describe the bug
The blocks Cover and Galerry Images only work with editor and administrator role. In multisite only work with super administrator.

To Reproduce
Steps to reproduce the behavior:

  1. Go to admin posts with author role and create new post.
  2. Click on new block > select Cover Image > configure the block > save the post.
  3. Open the post in front end view
  4. Update (F5) the post edit page.
  5. See error (image print)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 69.0.3497.100
@designsimply designsimply added [Type] Bug An existing feature does not function as intended [Feature] Blocks Overall functionality of blocks Needs Testing Needs further testing to be confirmed. labels Sep 20, 2018
@designsimply
Copy link
Member

designsimply commented Sep 20, 2018

Good find! Tested and confirmed using the author role on a site running WordPress 4.9.8 and Gutenberg 3.9.0-rc.2 tested with Firefox 62.0 on macOS 10.13.6.

API request for the media during editing:

http://alittletestblog.com/wp-json/wp/v2/media/14063?context=edit

API response:

{"code":"rest_forbidden_context","message":"Sorry, you are not allowed to edit this post.","data":{"status":403}}

screen shot 2018-09-20 at 5 49 48 pm

screen shot 2018-09-20 at 5 52 51 pm

@designsimply designsimply removed the Needs Testing Needs further testing to be confirmed. label Sep 20, 2018
@aduth
Copy link
Member

aduth commented Sep 21, 2018

Partial duplicate of #2539

The error response of @designsimply 's comment is related, though not quite the same as in #2539 which is mostly about block invalidations caused by content sanitization.

@miguelurtado
Copy link
Author

Hello @aduth
Thanks for reply, this related of unfiltered_html capacity.

@designsimply designsimply changed the title Gutenberg Role Error Cannot use cover image or gallery blocks with roles such as author in a single install or editor/admin in multisite Sep 27, 2018
@mtias
Copy link
Member

mtias commented Oct 27, 2018

This should be addressed with https://core.trac.wordpress.org/changeset/43781

@mtias mtias closed this as completed Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants