Fix GUI for Special:Tags if a user has deletechangetags permission only
authorMGChecker <hgasuser@gmail.com>
Fri, 13 May 2016 22:10:24 +0000 (00:10 +0200)
committerMGChecker <hgasuser@gmail.com>
Sat, 14 May 2016 11:16:03 +0000 (13:16 +0200)
In the really rare case a user has got the deletechangetags, but not the
managechangetags permission, the links to delete tags aren't displayed (because
the script only built the table column in this case). By API, deletechangetags
already works properly without managechangetags.

Change-Id: I675813ba62e6188d650c5486408dbe56e9290ca6

includes/specials/SpecialTags.php

index 521f0ce..2139949 100644 (file)
@@ -259,6 +259,9 @@ class SpecialTags extends SpecialPage {
                                        [ 'tag' => $tag ] );
                        }
 
+               }
+
+               if ( $actionLinks ) {
                        $newRow .= Xml::tags( 'td', null, $this->getLanguage()->pipeList( $actionLinks ) );
                }