phacility/phabricator · error · ConduitException

ERR_USAGE_ONLY_SELF_REMOVE

ERR_USAGE_ONLY_SELF_REMOVE

Error message

ERR_USAGE_ONLY_SELF_REMOVE

What it means

Error "ERR_USAGE_ONLY_SELF_REMOVE" thrown in phacility/phabricator.

Source

Thrown at src/applications/conpherence/conduit/ConpherenceUpdateThreadConduitAPIMethod.php:87

    $source = $request->newContentSource();
    $editor = id(new ConpherenceEditor())
      ->setContentSource($source)
      ->setActor($user);
    $xactions = array();
    $add_participant_phids = $request->getValue('addParticipantPHIDs', array());
    $remove_participant_phid = $request->getValue('removeParticipantPHID');
    $message = $request->getValue('message');
    $title = $request->getValue('title');
    if ($add_participant_phids) {
      $xactions[] = id(new ConpherenceTransaction())
        ->setTransactionType(
          ConpherenceThreadParticipantsTransaction::TRANSACTIONTYPE)
        ->setNewValue(array('+' => $add_participant_phids));
    }
    if ($remove_participant_phid) {
      if ($remove_participant_phid != $user->getPHID()) {
        throw new ConduitException('ERR_USAGE_ONLY_SELF_REMOVE');
      }
      $xactions[] = id(new ConpherenceTransaction())
        ->setTransactionType(
          ConpherenceThreadParticipantsTransaction::TRANSACTIONTYPE)
        ->setNewValue(array('-' => array($remove_participant_phid)));
    }
    if ($title) {
      $xactions[] = id(new ConpherenceTransaction())
        ->setTransactionType(
          ConpherenceThreadTitleTransaction::TRANSACTIONTYPE)
        ->setNewValue($title);
    }
    if ($message) {
      $xactions = array_merge(
        $xactions,
        $editor->generateTransactionsFromText(
          $user,
          $conpherence,

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/conpherence/conduit/ConpherenceUpdateThreadConduitAPIMethod.php:87 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/e7302474c2e87446. Report an issue: GitHub.