Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php |
— | — | @@ -19,7 +19,6 @@ |
20 | 20 | $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); |
21 | 21 | # Allow unprivileged users to at least view the settings |
22 | 22 | $this->isAllowed = $wgUser->isAllowed( 'stablesettings' ); |
23 | | - $this->disabledAttrib = !$this->isAllowed ? array( 'disabled' => 'disabled' ) : array(); |
24 | 23 | # Let anyone view, but not submit... |
25 | 24 | if( $wgRequest->wasPosted() ) { |
26 | 25 | if( $wgUser->isBlocked( !$confirm ) ) { |
— | — | @@ -71,8 +70,10 @@ |
72 | 71 | if( $this->isAllowed && !($this->page->userCan('edit') && $this->page->userCan('review')) ) { |
73 | 72 | $this->isAllowed = false; |
74 | 73 | } |
75 | | - |
76 | | - // Show form or submit... |
| 74 | + # Disable some elements as needed |
| 75 | + $this->disabledAttrib = !$this->isAllowed ? |
| 76 | + array( 'disabled' => 'disabled' ) : array(); |
| 77 | + # Show form or submit... |
77 | 78 | if( $this->isAllowed && $isValid && $confirm ) { |
78 | 79 | $status = $this->submit(); |
79 | 80 | if( $status === true ) { |