canUser select does not work with the global styles post type. #63438
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
REST API Interaction
Related to REST API
[Type] Bug
An existing feature does not function as intended
Description
When using the canUser selector against global styles the selector always returns false even for admin users with the capability.
Step-by-step reproduction instructions
await wp.data.resolveSelect('core').canUser('read', {kind: 'postType', name: 'wp_global_styles' });
, verify it returns false when it should be true.await wp.data.resolveSelect('core').canUser( 'read', 'global_styles' );
, verify it returns false when it should be true.Screenshots, screen recording, code snippet
No response
Environment info
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
The text was updated successfully, but these errors were encountered: