Skip to content

Add ability to preview template in post editor for non administrators #60316

Closed

Description

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, #58301

Todos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions