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