Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage_body.php |
— | — | @@ -82,8 +82,8 @@ |
83 | 83 | # Users can't take away a status they can't set |
84 | 84 | $wgOut->permissionRequired( 'badaccess-group0' ); |
85 | 85 | return; |
| 86 | + // Users cannot review to beyond their rights level |
86 | 87 | } else if( !$this->userCan( $tag, $this->dims[$tag] ) ) { |
87 | | - // Users cannot review to beyond their rights level |
88 | 88 | $wgOut->permissionRequired( 'badaccess-group0' ); |
89 | 89 | return; |
90 | 90 | } |
— | — | @@ -234,9 +234,9 @@ |
235 | 235 | } |
236 | 236 | |
237 | 237 | function submit( $request ) { |
238 | | - global $wgOut, $wgUser, $wgFlaggedRevs; |
| 238 | + global $wgOut, $wgUser, $wgFlaggedRevs, $wgFlaggedRevTags; |
239 | 239 | # If all values are set to zero, this has been unapproved |
240 | | - $approved = false; |
| 240 | + $approved = empty($wgFlaggedRevTags); |
241 | 241 | foreach( $this->dims as $quality => $value ) { |
242 | 242 | if( $value ) { |
243 | 243 | $approved = true; |