From 1e00e8117058cdde35c4f3f302de77d3d486d70b Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 14 Nov 2009 19:56:39 +0000 Subject: [PATCH] Add tools link to user rights management for proviledged users --- includes/specials/SpecialDeletedContributions.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ); -- 2.20.1