diff --git a/src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php b/src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php index e2b217603a..7ba20772c7 100644 --- a/src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php +++ b/src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php @@ -39,7 +39,7 @@ final class DifferentialRevisionReopenTransaction } protected function validateAction($object, PhabricatorUser $viewer) { - if ($object->isPublished()) { + if (!$object->isPublished()) { throw new Exception( pht( 'You can not reopen this revision because it is not closed. '.