Show RRM buttons on the edit post page for non-Site Kit users #10400
Labels
Module: RRM
Reader Revenue Manager module related issues
P0
High priority
Team M
Issues for Squad 2
Type: Enhancement
Improvement of an existing feature
Feature Description
At present, when RRM blocks are included in a post, and a non-admin user who hasn't had any Site Kit modules shared with them edits the post, the blocks aren't registered and the following warnings are shown instead.
In this scenario, we should ensure the blocks are registered and the buttons display in the disabled state with an appropriate warning notice in the block sidebar.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Test Coverage
Modules/Reader_Revenue_Manager
.QA
In publisher center > RRM, create a publication associated with the test website and configure
contribution
orsubscription
payment method.Activate Site Kit and make sure
rrmModule
andrrmModuleV2
features are enabled.Activate RRM module and connect to the publication for which we have configured payment option above.
Go to
Posts > Add New
, add the blockContribute with Google
orSubscribe with Google
based on which payment option was configured in publisher center. Save the post.Create a new
Editor
role user in WordPress and make sure that SK daskboard is not shared with this role.Login with Editor user in new browser window and open the same post in block editor. The
Subscribe with Google
block should be in disabled state with the same notice as that of AC.Changelog entry
The text was updated successfully, but these errors were encountered: