Fix bad conflict resolve
Also fix wrong push capability check.
This commit is contained in:
@@ -74,7 +74,7 @@ function handleSingleRepository(
|
||||
$viewer,
|
||||
$repository);
|
||||
|
||||
$pushable = $policies[DiffusionCapabilityPush::CAPABILITY];
|
||||
$pushable = $policies[DiffusionPushCapability::CAPABILITY];
|
||||
$type = phid_get_type($pushable->getPHID());
|
||||
|
||||
// Make sure repository is always available for read-only access
|
||||
|
||||
@@ -383,7 +383,7 @@ final class DiffusionRepositoryEditMainController
|
||||
pht('Editable By'),
|
||||
$descriptions[PhabricatorPolicyCapability::CAN_EDIT]);
|
||||
|
||||
$pushable = $descriptions[DiffusionCapabilityPush::CAPABILITY];
|
||||
$pushable = $descriptions[DiffusionPushCapability::CAPABILITY];
|
||||
$view->addProperty(pht('Pushable By'), $pushable);
|
||||
|
||||
return $view;
|
||||
|
||||
Reference in New Issue
Block a user