diff --git a/src/applications/conduit/method/differential/markcommitted/ConduitAPI_differential_markcommitted_Method.php b/src/applications/conduit/method/differential/markcommitted/ConduitAPI_differential_markcommitted_Method.php index d06253b663..a8277739e4 100644 --- a/src/applications/conduit/method/differential/markcommitted/ConduitAPI_differential_markcommitted_Method.php +++ b/src/applications/conduit/method/differential/markcommitted/ConduitAPI_differential_markcommitted_Method.php @@ -62,7 +62,7 @@ class ConduitAPI_differential_markcommitted_Method extends ConduitAPIMethod { $editor = new DifferentialCommentEditor( $revision, - $revision->getAuthorPHID(), + $request->getUser()->getPHID(), DifferentialAction::ACTION_COMMIT); $editor->save(); diff --git a/src/applications/differential/editor/comment/DifferentialCommentEditor.php b/src/applications/differential/editor/comment/DifferentialCommentEditor.php index 2610f05f27..b242d1e6a7 100644 --- a/src/applications/differential/editor/comment/DifferentialCommentEditor.php +++ b/src/applications/differential/editor/comment/DifferentialCommentEditor.php @@ -240,9 +240,6 @@ class DifferentialCommentEditor { break; case DifferentialAction::ACTION_COMMIT: - if (!$actor_is_author) { - throw new Exception('You can not commit a revision you do not own.'); - } $revision ->setStatus(DifferentialRevisionStatus::COMMITTED) ->save();