Describe the bug
When defining a custom post type and defining a custom user role with capabilities for that post type, Gutenberg editor hangs...
I am on WordPress 5.6. When I add the 'edit_posts' capability, the Gutenberg editor works fine. But this is not ideal since I only want the custom role to access this specific post type.
This worked fine on WordPress 5.5.3.
Here is the code I used to create the conditional.
Thanks for reporting and also for including the screenshots and detailed code to reproduce this. This has been reported at #27854 and I'll reply more to your comment there.
Describe the bug When defining a custom post type and defining a custom user role with capabilities for that post type, Gutenberg editor hangs...
I am on WordPress 5.6. When I add the
'edit_posts'
capability, the Gutenberg editor works fine. But this is not ideal since I only want the custom role to access this specific post type.This worked fine on WordPress 5.5.3.
Here is the code I used to create the conditional.
To reproduce Steps to reproduce the behavior:
Expected behavior Gutenberg editor is functional.
Screenshots![image](https://user-images.githubusercontent.com/20868511/104102831-d2b5af80-526c-11eb-8586-b69c59c1d33c.png)
https://user-images.githubusercontent.com/20868511/104102800-9da95d00-526c-11eb-93ec-8254e6c64de2.mov
Editor version (please complete the following information):
Desktop (please complete the following information):