phacility/phabricator · error · Exception
You can not abandon this revision because you are not the…
Error message
You can not abandon this revision because you are not the author. You can only abandon revisions you own. You can change this behavior by adjusting the "%s" setting in Config.
What it means
Error "You can not abandon this revision because you are not the author. You can only abandon revisions you own. You can change this behavior by adjusting the "%s" setting in Config." thrown in phacility/phabricator.
Solutions
- Ask the revision author (or an administrator) to perform the abandon, since only the owner can abandon their revision
- Enable the config key differential.always-allow-abandon in Config to allow any user with edit permission to abandon revisions
- Verify you are authenticated as the user you intend; acting as a different account is a common cause of ownership-check failures
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php:69 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/f032f1db0ffb566d.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php:69
}
public function applyInternalEffects($object, $value) {
$status_abandoned = DifferentialRevisionStatus::ABANDONED;
$object->setModernRevisionStatus($status_abandoned);
}
protected function validateAction($object, PhabricatorUser $viewer) {
if ($object->isClosed()) {
throw new Exception(
pht(
'You can not abandon this revision because it has already been '.
'closed. Only open revisions can be abandoned.'));
}
$config_key = 'differential.always-allow-abandon';
if (!PhabricatorEnv::getEnvConfig($config_key)) {
if (!$this->isViewerRevisionAuthor($object, $viewer)) {
throw new Exception(
pht(
'You can not abandon this revision because you are not the '.
'author. You can only abandon revisions you own. You can change '.
'this behavior by adjusting the "%s" setting in Config.',
$config_key));
}
}
}
public function getTitle() {
return pht(
'%s abandoned this revision.',
$this->renderAuthor());
}
public function getTitleForFeed() {
return pht(
'%s abandoned %s.',View on GitHub (pinned to 5720a38cfe)