mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix a minor issue with editing Credential policies
Also, test repository self-hosting. Auditors: btrahan
This commit is contained in:
parent
6e41016077
commit
fdb03a424d
2 changed files with 17 additions and 2 deletions
|
@ -86,7 +86,14 @@ final class PassphraseCredentialTransactionEditor
|
|||
}
|
||||
}
|
||||
return;
|
||||
case PhabricatorTransactions::TYPE_VIEW_POLICY:
|
||||
$object->setViewPolicy($xaction->getNewValue());
|
||||
return;
|
||||
case PhabricatorTransactions::TYPE_EDIT_POLICY:
|
||||
$object->setEditPolicy($xaction->getNewValue());
|
||||
return;
|
||||
}
|
||||
|
||||
return parent::applyCustomInternalTransaction($object, $xaction);
|
||||
}
|
||||
|
||||
|
@ -100,6 +107,8 @@ final class PassphraseCredentialTransactionEditor
|
|||
case PassphraseCredentialTransaction::TYPE_USERNAME:
|
||||
case PassphraseCredentialTransaction::TYPE_SECRET_ID:
|
||||
case PassphraseCredentialTransaction::TYPE_DESTROY:
|
||||
case PhabricatorTransactions::TYPE_VIEW_POLICY:
|
||||
case PhabricatorTransactions::TYPE_EDIT_POLICY:
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -322,13 +322,19 @@ abstract class PhabricatorApplicationTransactionEditor
|
|||
protected function applyCustomInternalTransaction(
|
||||
PhabricatorLiskDAO $object,
|
||||
PhabricatorApplicationTransaction $xaction) {
|
||||
throw new Exception("Capability not supported!");
|
||||
$type = $xaction->getTransactionType();
|
||||
throw new Exception(
|
||||
"Transaction type '{$type}' is missing an internal apply ".
|
||||
"implementation!");
|
||||
}
|
||||
|
||||
protected function applyCustomExternalTransaction(
|
||||
PhabricatorLiskDAO $object,
|
||||
PhabricatorApplicationTransaction $xaction) {
|
||||
throw new Exception("Capability not supported!");
|
||||
$type = $xaction->getTransactionType();
|
||||
throw new Exception(
|
||||
"Transaction type '{$type}' is missing an external apply ".
|
||||
"implementation!");
|
||||
}
|
||||
|
||||
protected function applyFinalEffects(
|
||||
|
|
Loading…
Reference in a new issue