Index: trunk/extensions/CleanChanges/CleanChanges_body.php |
— | — | @@ -489,7 +489,7 @@ |
490 | 490 | } |
491 | 491 | if( $userId ) { |
492 | 492 | $userrightsPage = new UserrightsPage(); |
493 | | - if( $userrightsPage->userCanChangeRights( User::newFromId( $id ) ) ) { |
| 493 | + if( $userrightsPage->userCanChangeRights( User::newFromId( $userId ) ) ) { |
494 | 494 | $targetPage = SpecialPage::getTitleFor( 'Userrights', $userText ); |
495 | 495 | $items[] = $this->skin->makeKnownLinkObj( $targetPage, |
496 | 496 | wfMsgHtml( 'cleanchanges-changerightslink' ) ); |