Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | } |
140 | 140 | |
141 | 141 | protected function doForm( $user, $reason, $checktype, $ip, $xff, $name, $period ) { |
142 | | - global $wgOut, $wgTitle; |
| 142 | + global $wgOut, $wgTitle, $wgUser; |
143 | 143 | $action = $wgTitle->escapeLocalUrl(); |
144 | 144 | # Fill in requested type if it makes sense |
145 | 145 | $encipusers = $encipedits = $encuserips = $encuseredits = 0; |
— | — | @@ -157,9 +157,11 @@ |
158 | 158 | $encuserips = 1; |
159 | 159 | # Compile our nice form |
160 | 160 | # User box length should fit things like "2001:0db8:85a3:08d3:1319:8a2e:0370:7344/100/xff" |
161 | | - $wgOut->addWikiText( wfMsg( 'checkuser-summary' ) . |
162 | | - "\n\n[[" . $this->getLogSubpageTitle()->getPrefixedText() . '|' . wfMsg( 'checkuser-showlog' ) . ']]' |
163 | | - ); |
| 161 | + if( $wgUser->isAllowed( 'checkuser-log' ) ) { |
| 162 | + $wgOut->addWikiText( wfMsg( 'checkuser-summary' ) . |
| 163 | + "\n\n[[" . $this->getLogSubpageTitle()->getPrefixedText() . '|' . wfMsg( 'checkuser-showlog' ) . ']]' |
| 164 | + ); |
| 165 | + } |
164 | 166 | $form = "<form name='checkuserform' id='checkuserform' action=\"$action\" method='post'>"; |
165 | 167 | $form .= "<fieldset><legend>".wfMsgHtml( "checkuser-query" )."</legend>"; |
166 | 168 | $form .= "<table border='0' cellpadding='2'><tr>"; |