phacility/phabricator · error · Exception

You can not accept this revision because you are the…

Error message

You can not accept this revision because you are the revision author. You can only accept revisions you do not own. You can change this behavior by adjusting the "%s" setting in Config.

What it means

Error "You can not accept this revision because you are the revision author. You can only accept revisions you do not own. You can change this behavior by adjusting the "%s" setting in Config." thrown in phacility/phabricator.

Solutions

  1. Let one of the assigned reviewers perform the accept; the author cannot review their own work by default
  2. Enable the config key differential.allow-self-accept in Config if solo development workflows require self-acceptance
  3. Check that you are not accidentally the revision author (e.g. the revision was authored on your behalf by a bot or Herald rule)
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionAcceptTransaction.php:176 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/20a2b0bbe0cc6dbd. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/differential/xaction/DifferentialRevisionAcceptTransaction.php:176

  }

  protected function validateAction($object, PhabricatorUser $viewer) {
    if ($object->isClosed()) {
      throw new Exception(
        pht(
          'You can not accept this revision because it has already been '.
          'closed. Only open revisions can be accepted.'));
    }

    if ($object->isDraft() || !$object->getShouldBroadcast()) {
      throw new Exception(
        pht('You can not accept a draft revision.'));
    }

    $config_key = 'differential.allow-self-accept';
    if (!PhabricatorEnv::getEnvConfig($config_key)) {
      if ($this->isViewerRevisionAuthor($object, $viewer)) {
        throw new Exception(
          pht(
            'You can not accept this revision because you are the revision '.
            'author. You can only accept revisions you do not own. You can '.
            'change this behavior by adjusting the "%s" setting in Config.',
            $config_key));
      }
    }

    if ($this->isViewerFullyAccepted($object, $viewer)) {
      throw new Exception(
        pht(
          'You can not accept this revision because you have already '.
          'accepted it.'));
    }
  }

  protected function validateOptionValue($object, $actor, array $value) {
    if (!$value) {

View on GitHub (pinned to 5720a38cfe)