jenkins-bot has submitted this change and it was merged.

Change subject: Respect "Block anonymous users only" for the local block as well
......................................................................


Respect "Block anonymous users only" for the local block as well

After a discussion on stewards-l this is how stewards want
this (also it's probably more intuitive).

Change-Id: Id01f80b165f3ea88ca807b6764e04c2a5d6af3c8
---
M SpecialGlobalBlock.php
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  CSteipp: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/SpecialGlobalBlock.php b/SpecialGlobalBlock.php
index 548147b..35e6d80 100644
--- a/SpecialGlobalBlock.php
+++ b/SpecialGlobalBlock.php
@@ -153,6 +153,7 @@
                        $block->setBlocker( $this->getUser() );
                        $block->mReason = $reasonstr;
                        $block->mExpiry = SpecialBlock::parseExpiryInput( 
$this->mExpiry );
+                       $block->isHardblock( !$this->mAnonOnly );
                        $blockSuccess = $block->insert();
 
                        if( $blockSuccess ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/124042
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id01f80b165f3ea88ca807b6764e04c2a5d6af3c8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalBlocking
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to