Unfatal rendering of repository policy transactions
Summary: Fixes T4919. There's some special casing in Diffusion for CAN_PUSH right now, just accommodate that until things get more general. Test Plan: Viewed a repository edit screen with a custom policy transaction. Clicked the link to view it. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T4919 Differential Revision: https://secure.phabricator.com/D8898
This commit is contained in:
@@ -27,10 +27,15 @@ final class PhabricatorApplicationTransactionValueController
|
||||
// to show the details of custom policies. If / when this pathway
|
||||
// supports more transaction types, rendering coding should be moved
|
||||
// into PhabricatorTransactions e.g. feed rendering code.
|
||||
|
||||
// TODO: This should be some kind of "hey do you support this?" thing on
|
||||
// the transactions themselves.
|
||||
|
||||
switch ($xaction->getTransactionType()) {
|
||||
case PhabricatorTransactions::TYPE_VIEW_POLICY:
|
||||
case PhabricatorTransactions::TYPE_EDIT_POLICY:
|
||||
case PhabricatorTransactions::TYPE_JOIN_POLICY:
|
||||
case PhabricatorRepositoryTransaction::TYPE_PUSH_POLICY:
|
||||
break;
|
||||
default:
|
||||
return new Aphront404Response();
|
||||
|
||||
Reference in New Issue
Block a user