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

Gutenberg editor not working if change capabilities for user role #68577

Closed
3 of 6 tasks
bradhogan opened this issue Jan 9, 2025 · 2 comments
Closed
3 of 6 tasks

Gutenberg editor not working if change capabilities for user role #68577

bradhogan opened this issue Jan 9, 2025 · 2 comments
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Bug An existing feature does not function as intended

Comments

@bradhogan
Copy link

Description

Initially came across this bug when using the PublishPress Capabilities plugin but if you change the user capabilities manually it occurs as well.

Step-by-step reproduction instructions

  1. Make sure Gutenberg plugin is active
  2. Create a new user and set this user as an "author" role
  3. Change the user's capabilities for the author role to allow the author to edit and publish PAGES
  4. You can make the above change using the PublishPress Capabilities plugin if you want then just deactivate the plugin (the capabilities should still be in place without the plugin)
  5. In your admin user, create a page and use a default pattern with a bunch of blocks so the editor has content / blocks
  6. See that the editor and blocks appear as they should
  7. Assign the author of that new page to the author role user
  8. Switch users to be logged in as the author, then try to edit the page
  9. Notice the editor is blank
  10. Deactivate Gutenberg plugin then go back to edit page as your author user and notice the blocks are now there

Screenshots, screen recording, code snippet

No response

Environment info

  • wp 6.7.1
  • gutenberg 19.9.0
  • chrome
  • mac

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@bradhogan bradhogan added the [Type] Bug An existing feature does not function as intended label Jan 9, 2025
@himanshupathak95
Copy link
Contributor

Hey @bradhogan, Thanks for bringing this up.

I tried replicating the issue -

Screen.Recording.2025-01-10.at.08.20.56.mov

But it seems to be working fine on the trunk because I believe this was fixed in #68053.

@Mamaduka Mamaduka added the [Feature] Template Editing Mode Related to the template editor available in the Block Editor label Jan 10, 2025
@Mamaduka
Copy link
Member

Yes, this was fixed via #68110 and should be part of the Gutenberg 20.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants