Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/227190
Change subject: Avoid providing Special:CX for blocked users ...................................................................... Avoid providing Special:CX for blocked users We have this check at publishing stage, but that is late and wastes users time. Bug: T100498 Change-Id: Ib6cdcc2e5f6e7fc631e5ff7d1d3a4f812f5fa6a6 --- M ContentTranslation.hooks.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/90/227190/1 diff --git a/ContentTranslation.hooks.php b/ContentTranslation.hooks.php index 1454ec2..f73edd2 100644 --- a/ContentTranslation.hooks.php +++ b/ContentTranslation.hooks.php @@ -25,6 +25,10 @@ return false; } + if ( $user->isBlocked() ) { + return false; + } + if ( !$wgContentTranslationAsBetaFeature ) { return true; } -- To view, visit https://gerrit.wikimedia.org/r/227190 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib6cdcc2e5f6e7fc631e5ff7d1d3a4f812f5fa6a6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits