If I use the MinervaNeue skin for the MobileFrontend extension and I set the following user rights in MediaWiki via the wgGroupPermissions preference in the LocalSettings.php file:
$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['user']['edit'] = true;
Expected:
As the setting above defines that anonymous users who are not logged in cannot edit a wiki page, I should get some indication I cannot edit.
Actual:
the edit button can still be clicked and I see this
I can continue the edit and its only when I try to save that I hit issues.
Expected: Clicking the edit icon should prompt the user to login in some way.
acceptance criteria
- Edit icon must show at locked for these users
- When clicking the edit icon we should show the CtaDrawer just as we do for the watchstar.
- The messaging of the drawer should use mobile-frontend-edit-login-action
Developer notes
At minimum, we should disable the edit icon to these users (showing edit-locked) based on the check of permissions.
A better solution would be to mimic the CtaDrawer for the watchstar.
The CtaDrawer provides this functionality for the watchstar.
Related: T206813
QA steps
Please verify the edit pencil is performing as expected on both beta cluster and reading web staging.
The 3rd party use case has been tested and verified by @Jdlrobson so no need to check that!