Differential D14904 Diff 36033 src/applications/project/controller/PhabricatorProjectMembersEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectMembersEditController.php
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | foreach ($handles as $handle) { | ||||
); | ); | ||||
} | } | ||||
$can_edit = PhabricatorPolicyFilter::hasCapability( | $can_edit = PhabricatorPolicyFilter::hasCapability( | ||||
$viewer, | $viewer, | ||||
$project, | $project, | ||||
PhabricatorPolicyCapability::CAN_EDIT); | PhabricatorPolicyCapability::CAN_EDIT); | ||||
$supports_edit = $project->supportsEditMembers(); | |||||
$form_box = null; | $form_box = null; | ||||
$title = pht('Add Members'); | $title = pht('Add Members'); | ||||
if ($can_edit) { | if ($can_edit && $supports_edit) { | ||||
$header_name = pht('Edit Members'); | $header_name = pht('Edit Members'); | ||||
$view_uri = $this->getApplicationURI('profile/'.$project->getID().'/'); | $view_uri = $this->getApplicationURI('profile/'.$project->getID().'/'); | ||||
$form = new AphrontFormView(); | $form = new AphrontFormView(); | ||||
$form | $form | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->appendControl( | ->appendControl( | ||||
id(new AphrontFormTokenizerControl()) | id(new AphrontFormTokenizerControl()) | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |