{"record":{"id":"f032f1db0ffb566d","repo":"phacility/phabricator","slug":"you-can-not-abandon-this-revision-because-you-are","errorCode":null,"errorMessage":"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.","messagePattern":"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 \"(.+?)\" setting in Config\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php","lineNumber":69,"sourceCode":"  }\n\n  public function applyInternalEffects($object, $value) {\n    $status_abandoned = DifferentialRevisionStatus::ABANDONED;\n    $object->setModernRevisionStatus($status_abandoned);\n  }\n\n  protected function validateAction($object, PhabricatorUser $viewer) {\n    if ($object->isClosed()) {\n      throw new Exception(\n        pht(\n          'You can not abandon this revision because it has already been '.\n          'closed. Only open revisions can be abandoned.'));\n    }\n\n    $config_key = 'differential.always-allow-abandon';\n    if (!PhabricatorEnv::getEnvConfig($config_key)) {\n      if (!$this->isViewerRevisionAuthor($object, $viewer)) {\n        throw new Exception(\n          pht(\n            'You can not abandon this revision because you are not the '.\n            'author. You can only abandon revisions you own. You can change '.\n            'this behavior by adjusting the \"%s\" setting in Config.',\n            $config_key));\n      }\n    }\n  }\n\n  public function getTitle() {\n    return pht(\n      '%s abandoned this revision.',\n      $this->renderAuthor());\n  }\n\n  public function getTitleForFeed() {\n    return pht(\n      '%s abandoned %s.',","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php#L51-L87","documentation":"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.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}