phacility/phabricator · error · ConduitException
ERR-PERMISSIONS
ERR-PERMISSIONS
Error message
Only admins can call this method.
What it means
Error "Only admins can call this method." thrown in phacility/phabricator.
Source
Thrown at src/applications/people/conduit/UserEnableConduitAPIMethod.php:41
'phids' => 'required list<phid>',
);
}
protected function defineReturnType() {
return 'void';
}
protected function defineErrorTypes() {
return array(
'ERR-PERMISSIONS' => pht('Only admins can call this method.'),
'ERR-BAD-PHID' => pht('Non existent user PHID.'),
);
}
protected function execute(ConduitAPIRequest $request) {
$actor = $request->getUser();
if (!$actor->getIsAdmin()) {
throw new ConduitException('ERR-PERMISSIONS');
}
$phids = $request->getValue('phids');
$users = id(new PhabricatorUser())->loadAllWhere(
'phid IN (%Ls)',
$phids);
if (count($phids) != count($users)) {
throw new ConduitException('ERR-BAD-PHID');
}
foreach ($phids as $phid) {
$params = array(
'transactions' => array(
array(
'type' => 'disabled',
'value' => false,View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/people/conduit/UserEnableConduitAPIMethod.php:41 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/757e0fcb04bf1312.
Report an issue: GitHub.