Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -282,10 +282,10 @@ |
283 | 283 | throw new MWException( "Tried to save invalid code revision status" ); |
284 | 284 | } |
285 | 285 | |
286 | | - // Don't allow the user account tied to the committer account mark their own revisions as ok |
| 286 | + // Don't allow the user account tied to the committer account mark their own revisions as ok/resolved |
287 | 287 | // Obviously only works if user accounts are tied! |
288 | 288 | $wikiUser = $this->getWikiUser(); |
289 | | - if ( $status == 'ok' && $wikiUser && $user->getName() == $wikiUser->getName() ) { |
| 289 | + if ( ( $status == 'ok' || $status == 'resolved' ) && $wikiUser && $user->getName() == $wikiUser->getName() ) { |
290 | 290 | // allow the user to review their own code if required |
291 | 291 | if ( !$wikiUser->isAllowed( 'codereview-review-own' ) ) { |
292 | 292 | return false; |