{"record":{"id":"cac220de0b09384d","repo":"phacility/phabricator","slug":"you-can-not-resign-from-this-revision-because-you-cac220","errorCode":null,"errorMessage":"You can not resign from this revision because you are not a reviewer, and do not have authority over any reviewer.","messagePattern":"You can not resign from this revision because you are not a reviewer, and do not have authority over any reviewer\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionResignTransaction.php","lineNumber":79,"sourceCode":"\n  protected function validateAction($object, PhabricatorUser $viewer) {\n    if ($object->isClosed()) {\n      throw new Exception(\n        pht(\n          'You can not resign from this revision because it has already '.\n          'been closed. You can only resign from open revisions.'));\n    }\n\n    $resigned = DifferentialReviewerStatus::STATUS_RESIGNED;\n    if ($this->getViewerReviewerStatus($object, $viewer) == $resigned) {\n      throw new Exception(\n        pht(\n          'You can not resign from this revision because you have already '.\n          'resigned.'));\n    }\n\n    if (!$this->isViewerAnyAuthority($object, $viewer)) {\n      throw new Exception(\n        pht(\n          'You can not resign from this revision because you are not a '.\n          'reviewer, and do not have authority over any reviewer.'));\n    }\n  }\n\n  public function getTitle() {\n    return pht(\n      '%s resigned from this revision.',\n      $this->renderAuthor());\n  }\n\n  public function getTitleForFeed() {\n    return pht(\n      '%s resigned from %s.',\n      $this->renderAuthor(),\n      $this->renderObject());\n  }","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionResignTransaction.php#L61-L97","documentation":"Role guard in DifferentialRevisionResignTransaction::validateAction: the viewer is neither a direct reviewer on the revision nor a member of any package/project reviewer they would have authority to resign for (isViewerReviewerOrAuthority style check returned false). Resignation is a reviewer action; users with no reviewer stake on the revision cannot resign from it.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionResignTransaction.php:79 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Only reviewers (or members of reviewing packages/projects) can resign; if you were never a reviewer there is nothing to do","If you were removed as a reviewer, no resignation is needed","If you should be a reviewer, ask the author to add you before resigning"],"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"}