Differential D25252 Diff 843 src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | if ($object->isChangePlanned()) { | ||||
'You can not request review of this revision because this '. | 'You can not request review of this revision because this '. | ||||
'revision is already under review and the action would have '. | 'revision is already under review and the action would have '. | ||||
'no effect.')); | 'no effect.')); | ||||
} | } | ||||
if ($object->isClosed()) { | if ($object->isClosed()) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'You can not plan changes to this this revision because it has '. | 'You can not plan changes to this revision because it has '. | ||||
valerio.bozzolan: ✅ I verified this line with my big eyes | |||||
'already been closed.')); | 'already been closed.')); | ||||
} | } | ||||
if (!$this->isViewerRevisionAuthor($object, $viewer)) { | if (!$this->isViewerRevisionAuthor($object, $viewer)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'You can not plan changes to this revision because you do not '. | 'You can not plan changes to this revision because you do not '. | ||||
'own it. Only the author of a revision can plan changes to it.')); | 'own it. Only the author of a revision can plan changes to it.')); | ||||
Show All 36 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
✅ I verified this line with my big eyes