Add ability to preview template in post editor for non administrators #60316
Labels
[Block] Navigation
Affects the Navigation Block
[Block] Post Template
Affects the Post Template Block
[Feature] Template Editing Mode
Related to the template editor available in the Block Editor
[Package] Edit Post
/packages/edit-post
REST API Interaction
Related to REST API
[Type] Enhancement
A suggestion for improvement.
Description
Since the update to unify the PostTemplatePanel in #56817 administrators can preview the current template in post-editor.
Any non-administrator roles (anyone without the
edit_theme_options
capability) cannot preview the template because they are not allowed to access the template/template part/navigation rest endpoints.Proposed solution
Open up view-only access to any of the custom post types that are used in the site editor to any other user roles with the
edit_post
capability.Additionally some of the blocks such as
core/template–part
&core/navigation
will need to be updated to include a view-only mode. #58037, #58485, #58301Todos
edit_post
capability #60317The text was updated successfully, but these errors were encountered: