Index: trunk/extensions/FlaggedRevs/api/ApiReview.php |
— | — | @@ -41,8 +41,6 @@ |
42 | 42 | $this->dieUsageMsg( array( 'badaccess-group0' ) ); |
43 | 43 | if( $wgUser->isBlocked() ) |
44 | 44 | $this->dieUsageMsg( array( 'blockedtext' ) ); |
45 | | - if( !$wgUser->matchEditToken( $params['token'] ) ) |
46 | | - $this->dieUsageMsg( array( 'sessionfailure' ) ); |
47 | 45 | |
48 | 46 | // Construct submit form |
49 | 47 | $form = new RevisionReview(); |
— | — | @@ -162,6 +160,10 @@ |
163 | 161 | public function getDescription() { |
164 | 162 | return 'Review a revision via FlaggedRevs.'; |
165 | 163 | } |
| 164 | + |
| 165 | + public function getTokenSalt() { |
| 166 | + return null; |
| 167 | + } |
166 | 168 | |
167 | 169 | protected function getExamples() { |
168 | 170 | return 'api.php?action=review&revid=12345&token=123AB&flag_accuracy=1&comment=Ok'; |