From: Siebrand Mazeland Date: Sat, 14 Nov 2009 19:56:39 +0000 (+0000) Subject: Add tools link to user rights management for proviledged users X-Git-Tag: 1.31.0-rc.0~38804 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=1e00e8117058cdde35c4f3f302de77d3d486d70b;p=lhc%2Fweb%2Fwiklou.git Add tools link to user rights management for proviledged users --- diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index aa6cd5fb2c..e41e732493 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -372,6 +372,15 @@ class DeletedContributionsPage extends SpecialPage { wfMsgHtml( 'sp-deletedcontributions-contribs' ) ); + # Add a link to change user rights for privileged users + $userrightsPage = new UserrightsPage(); + if( 0 !== $id && $userrightsPage->userCanChangeRights( User::newFromId( $id ) ) ) { + $tools[] = $sk->linkKnown( + SpecialPage::getTitleFor( 'Userrights', $nt->getDBkey() ), + wfMsgHtml( 'sp-contributions-userrights' ) + ); + } + wfRunHooks( 'ContributionsToolLinks', array( $id, $nt, &$tools ) ); $links = $wgLang->pipeList( $tools );