Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/204066
Change subject: Remove expensive $user->isBlocked() check
......................................................................
Remove expensive $user->isBlocked() check
The write API module already checks for this.
Change-Id: I4068797d262a5aeab2c8cfdc805e4bcc5c9d8333
---
M ContentTranslation.hooks.php
1 file changed, 0 insertions(+), 5 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/66/204066/1
diff --git a/ContentTranslation.hooks.php b/ContentTranslation.hooks.php
index c4e591c..ab6237a 100644
--- a/ContentTranslation.hooks.php
+++ b/ContentTranslation.hooks.php
@@ -20,11 +20,6 @@
public static function isEnabledForUser( User $user ) {
global $wgContentTranslationAsBetaFeature;
- // Not available for blocked users.
- if ( $user->isBlocked() ) {
- return false;
- }
-
// CX is currently restricted to only logged in users
if ( $user->isAnon() ) {
return false;
--
To view, visit https://gerrit.wikimedia.org/r/204066
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4068797d262a5aeab2c8cfdc805e4bcc5c9d8333
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits