Allow setting email even when blocked from sending emails
authorDannyS712 <DannyS712.enwiki@gmail.com>
Mon, 8 Jul 2019 15:28:37 +0000 (15:28 +0000)
committerDannyS712 <DannyS712.enwiki@gmail.com>
Mon, 8 Jul 2019 15:29:13 +0000 (15:29 +0000)
Bug: T225872
Change-Id: If23a55d2e21bb46ecdae96a93ab62e019ec3f957

includes/specials/SpecialChangeEmail.php

index 956ff77..c95aa1b 100644 (file)
@@ -78,10 +78,6 @@ class SpecialChangeEmail extends FormSpecialPage {
                        throw new PermissionsError( 'viewmyprivateinfo' );
                }
 
-               if ( $user->isBlockedFromEmailuser() ) {
-                       throw new UserBlockedError( $user->getBlock() );
-               }
-
                parent::checkExecutePermissions( $user );
        }