Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -165,14 +165,23 @@ |
166 | 166 | } |
167 | 167 | # Other logs link |
168 | 168 | $tools[] = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'Log' ), wfMsg( 'sp-contributions-logs' ), |
169 | | - 'user=' . $nt->getPartialUrl() ); |
| 169 | + 'user=' . $nt->getPartialUrl() ); |
170 | 170 | |
171 | 171 | # Add link to deleted user contributions for priviledged users |
172 | 172 | if( $wgUser->isAllowed( 'deletedhistory' ) ) { |
173 | | - $tools[] = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'DeletedContributions', |
| 173 | + $tools[] = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'DeletedContributions', |
174 | 174 | $nt->getDBkey() ), wfMsgHtml( 'deletedcontributions' ) ); |
175 | 175 | } |
176 | | - |
| 176 | + |
| 177 | + # Add a link to change user rights for privileged users |
| 178 | + $userrightsPage = new UserrightsPage(); |
| 179 | + if( 0 !== $id && $userrightsPage->userCanChangeRights( User::newFromId( $id ) ) ) { |
| 180 | + $tools[] = $sk->makeKnownLinkObj( |
| 181 | + SpecialPage::getTitleFor( 'Userrights', $nt->getDBkey() ), |
| 182 | + wfMsgHtml( 'userrights' ) |
| 183 | + ); |
| 184 | + } |
| 185 | + |
177 | 186 | wfRunHooks( 'ContributionsToolLinks', array( $id, $nt, &$tools ) ); |
178 | 187 | |
179 | 188 | $links = $wgLang->pipeList( $tools ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -131,6 +131,7 @@ |
132 | 132 | LanguageConverter class) |
133 | 133 | * (bug 17844) Redirect users to a specific page when they log in, see |
134 | 134 | $wgRedirectOnLogin |
| 135 | +* Added a link to Special:UserRights on Special:Contributions for privileged users |
135 | 136 | |
136 | 137 | === Bug fixes in 1.15 === |
137 | 138 | * (bug 16968) Special:Upload no longer throws useless warnings. |