Make WordPress Core

Opened 4 weeks ago

Last modified 10 hours ago

#61137 assigned enhancement

Allow view access of template rest endpoint to anyone with the edit_post capability

Reported by: fabiankaegy's profile fabiankaegy Owned by: fabiankaegy's profile fabiankaegy
Milestone: 6.6 Priority: normal
Severity: normal Version:
Component: REST API Keywords: has-patch has-unit-tests gutenberg-merge commit
Focuses: Cc:


Sync ticket for

In order to render the block template in the locked template preview inside the post editor we need to be able to fetch the contents of any block templates/template parts for any user role that can edit a post.

Change History (7)

This ticket was mentioned in PR #6494 on WordPress/wordpress-develop by @fabiankaegy.

4 weeks ago

  • Keywords has-patch added

#2 @swissspidy
4 weeks ago

  • Keywords needs-unit-tests added

#3 @fabiankaegy
9 days ago

  • Keywords has-unit-tests added; needs-unit-tests removed

I added some unit test cases that cover the changes in the flow

#4 @fabiankaegy
21 hours ago

  • Keywords gutenberg-merge added

#5 @fabiankaegy
12 hours ago

@youknowriad and @TimothyBlynJacobs since you worked on this one with me / reviewed in Gutenberg, would you be able to help get it into core also? We have 1 week till Beta 1 is supposed to be released and I want to make sure we have time for any remediation in case your review wants to change anything.

Thanks in advance :)

@youknowriad commented on PR #6494:

10 hours ago

I'll add this to my commit list if no one beats me to it.

#7 @youknowriad
10 hours ago

  • Keywords commit added
Note: See TracTickets for help on using tickets.