{"record":{"id":"2b855e76848a0738","repo":"phacility/phabricator","slug":"you-can-not-plan-changes-to-this-revision-because","errorCode":null,"errorMessage":"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.","messagePattern":"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\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php","lineNumber":94,"sourceCode":"    }\n\n    if ($object->isChangePlanned()) {\n      throw new Exception(\n        pht(\n          'You can not request review of this revision because this '.\n          'revision is already under review and the action would have '.\n          'no effect.'));\n    }\n\n    if ($object->isClosed()) {\n      throw new Exception(\n        pht(\n          'You can not plan changes to this this revision because it has '.\n          'already been closed.'));\n    }\n\n    if (!$this->isViewerRevisionAuthor($object, $viewer)) {\n      throw new Exception(\n        pht(\n          'You can not plan changes to this revision because you do not '.\n          'own it. Only the author of a revision can plan changes to it.'));\n    }\n  }\n\n  public function getTitle() {\n    if ($this->isDraftDemotion()) {\n      return pht(\n        '%s returned this revision to the author for changes because remote '.\n        'builds failed.',\n        $this->renderAuthor());\n    } else {\n      return pht(\n        '%s planned changes to this revision.',\n        $this->renderAuthor());\n    }\n  }","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php#L76-L112","documentation":"Ownership guard in DifferentialRevisionPlanChangesTransaction::validateAction: the acting viewer is not the revision author (isViewerRevisionAuthor returned false). Unlike abandon/close there is no config override for this action — planning changes is strictly reserved for the revision owner, because it represents the author declaring they will revise the change.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ask the revision author to perform the 'Plan Changes' action","If you are the author, confirm you are authenticated as the correct account (and that a bot/Herald rule did not author the revision under another PHID)","Reviewers wanting changes should use 'Request Changes' instead, which is the reviewer-side equivalent"],"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"}