Merge "Remove TODO for unblockself"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 29 Jul 2019 13:11:57 +0000 (13:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 29 Jul 2019 13:11:57 +0000 (13:11 +0000)
includes/specials/SpecialBlock.php

index ea4f18d..13e4609 100644 (file)
@@ -1130,8 +1130,6 @@ class SpecialBlock extends FormSpecialPage {
                if ( $performer->getBlock() ) {
                        if ( $target instanceof User && $target->getId() == $performer->getId() ) {
                                # User is trying to unblock themselves
-                               // @TODO Ensure that the block does not apply to the `unblockself`
-                               //       right.
                                if ( $performer->isAllowed( 'unblockself' ) ) {
                                        return true;
                                        # User blocked themselves and is now trying to reverse it