Synced Pattern: Posts cannot be saved if a pattern is updated by a non-administrator #56356
Labels
[Block] Pattern
Affects the Patterns Block
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
For example, an author can insert a synced pattern created by an administrator using the inserter. The author can then edit the content within the synced pattern.
However, if you update the post, the save will fail, probably because you don't have permission to update that pattern. Unsaved entities will remain and you will not be able to save unless you reload your browser.
The behavior I expect is that you shouldn't be able to edit the synced pattern in the editor unless you have permission to edit it.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
f0acd7306698c5d149b83dc29dc88667.mp4
Environment info
Latest Gutenberg (17.1.0-rc.1)
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: