Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage_body.php |
— | — | @@ -848,6 +848,7 @@ |
849 | 849 | |
850 | 850 | $confirm = $wgRequest->wasPosted() && |
851 | 851 | $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); |
| 852 | + |
852 | 853 | $this->isAllowed = $wgUser->isAllowed( 'stablesettings' ); |
853 | 854 | # Let anyone view, but not submit... |
854 | 855 | if( $wgRequest->wasPosted() ) { |
— | — | @@ -953,13 +954,14 @@ |
954 | 955 | $form .= "<td>".Xml::radio( 'override', 0, (0==$encoverride), array('id' => 'default2') + $off)."</td>"; |
955 | 956 | $form .= "<td>".Xml::label( wfMsg('stabilization-def2'), 'default2' )."</td>"; |
956 | 957 | $form .= "</tr></table></fieldset>"; |
| 958 | + if( $this->isAllowed ) { |
| 959 | + $form .= Xml::hidden('title', $wgTitle->getPrefixedText() ); |
| 960 | + $form .= Xml::hidden('page', $this->page->getPrefixedText() ); |
| 961 | + $form .= wfHidden( 'wpEditToken', $wgUser->editToken() ); |
957 | 962 | |
958 | | - $form .= Xml::hidden('title', $wgTitle->getPrefixedText() ); |
959 | | - $form .= Xml::hidden('page', $this->page->getPrefixedText() ); |
960 | | - $form .= wfHidden( 'wpEditToken', $wgUser->editToken() ); |
961 | | - |
962 | | - $form .= '<p>'.wfInputLabel( wfMsgHtml( 'revreview-log' ), 'wpReason', 'wpReason', 60 ).'</p>'; |
963 | | - $form .= wfSubmitButton( wfMsgHtml( 'stabilization-submit' ) ); |
| 963 | + $form .= '<p>'.wfInputLabel( wfMsgHtml( 'revreview-log' ), 'wpReason', 'wpReason', 60 ).'</p>'; |
| 964 | + $form .= wfSubmitButton( wfMsgHtml( 'stabilization-submit' ) ); |
| 965 | + } |
964 | 966 | $form .= '</form>'; |
965 | 967 | |
966 | 968 | $wgOut->addHTML( $form ); |