mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Allow draft revisions to be commandeered
Summary: See PHI457. There's no real reason not to allow this, it just wasn't clear if it was useful. See D18626. An install had a user `arc diff` and then sprint out the door to take a very long vacation before the builds finished. One failed, so the revision is stuck as a draft forever. This seems like a reasonable motivation for allowing "Commandeer". Test Plan: Successfully commandeered a draft. Differential Revision: https://secure.phabricator.com/D19228
This commit is contained in:
parent
cd7ba6cd7b
commit
af8269d2fb
1 changed files with 0 additions and 5 deletions
|
@ -66,11 +66,6 @@ final class DifferentialRevisionCommandeerTransaction
|
|||
'been closed. You can only commandeer open revisions.'));
|
||||
}
|
||||
|
||||
if ($object->isDraft()) {
|
||||
throw new Exception(
|
||||
pht('You can not commandeer a draft revision.'));
|
||||
}
|
||||
|
||||
if ($this->isViewerRevisionAuthor($object, $viewer)) {
|
||||
throw new Exception(
|
||||
pht(
|
||||
|
|
Loading…
Reference in a new issue