X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialLog.php;h=e44ce5f5b2b7d95e9ed21df7f75bcb59c8fb9bf1;hb=bffc8e0bf360b896dcfa61b4f5d717f1c929b4fa;hp=fe6ce68d2774a62a7a9433ef6e9edabb58eecdd9;hpb=036934b14b4b82e5d819af70fffc0ad486d90c56;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php index fe6ce68d27..e44ce5f5b2 100644 --- a/includes/specials/SpecialLog.php +++ b/includes/specials/SpecialLog.php @@ -218,10 +218,10 @@ class SpecialLog extends SpecialPage { private function getActionButtons( $formcontents ) { $user = $this->getUser(); $canRevDelete = $user->isAllowedAll( 'deletedhistory', 'deletelogentry' ); - $canModifyTags = $user->isAllowed( 'changetags' ); + $showTagEditUI = ChangeTags::showTagEditingUI( $user ); # If the user doesn't have the ability to delete log entries nor edit tags, # don't bother showing them the button(s). - if ( !$canRevDelete && !$canModifyTags ) { + if ( !$canRevDelete && !$showTagEditUI ) { return $formcontents; } @@ -246,7 +246,7 @@ class SpecialLog extends SpecialPage { $this->msg( 'showhideselectedlogentries' )->text() ) . "\n"; } - if ( $canModifyTags ) { + if ( $showTagEditUI ) { $buttons .= Html::element( 'button', array(