Here is a great example of Gutenberg’s granular control over the content. Wholesome Publishing expands on Gutenberg’s core functionality, similarly to what Editor’s Kit does, by providing visibility control over each individual block by letting us set individual blocks as drafts, and introducing block based comment threads.
A very simple plugin to limit visibility of your content based on user roles, while offering an alternative area to add the content that will be shown to non logged-in users.
This block could be used to create a simple membership site, for instance.
We could also insert a reusable block in the “public” area with a call to action asking visitors to register, in order to gain access to that content.
This is what the plugin looks like in the backend:
The plugin has a setting to specify the exact user role that will have access to a given instance of the block:
The author of the plugin mentions some features coming down the road:
Login Block
Register Block
Password Reset Block
Restrict entire pages / posts, not just inline content
The plugin looks a little bit abandoned at the moment (no updates for the last 9 months) but I was able to confirm it works fine both with the WP core version of the editor (5.2) and with the beta/plugin version (6.6.0)