See https://github.com/WordPress/gutenberg/pull/10649 - we can now directly control whether the user can publish/update a post. `wp.data.dispatch( 'core/editor' ).lockPostSaving( 'mylock' );` `wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' );`
See WordPress/gutenberg#10649 - we can now directly control whether the user can publish/update a post.
wp.data.dispatch( 'core/editor' ).lockPostSaving( 'mylock' );wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' );