Fix some more issues after the merge

This commit is contained in:
2014-09-23 00:57:46 +06:00
parent dbd2f0d06f
commit 5e4ce96266
2 changed files with 3 additions and 3 deletions

View File

@@ -81,12 +81,12 @@ 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());
$members = array(); $members = array();
if ($type == PhabricatorProjectPHIDTypeProject::TYPECONST) { if ($type == PhabricatorProjectProjectPHIDType::TYPECONST) {
$project = id(new PhabricatorProjectQuery()) $project = id(new PhabricatorProjectQuery())
->setViewer($viewer) ->setViewer($viewer)
->needMembers(true) ->needMembers(true)

View File

@@ -84,7 +84,7 @@ function handleSingleRepository(
$access[$repository_rootpath]['RO'] = array(); $access[$repository_rootpath]['RO'] = array();
} }
if ($type == PhabricatorProjectPHIDTypeProject::TYPECONST) { if ($type == PhabricatorProjectProjectPHIDType::TYPECONST) {
$project = id(new PhabricatorProjectQuery()) $project = id(new PhabricatorProjectQuery())
->setViewer($viewer) ->setViewer($viewer)
->needMembers(true) ->needMembers(true)