diff --git a/src/applications/project/application/PhabricatorProjectApplication.php b/src/applications/project/application/PhabricatorProjectApplication.php index 4d84b2af4e..568d25d944 100644 --- a/src/applications/project/application/PhabricatorProjectApplication.php +++ b/src/applications/project/application/PhabricatorProjectApplication.php @@ -92,6 +92,24 @@ final class PhabricatorProjectApplication extends PhabricatorApplication { ); } + public function getQuickCreateItems(PhabricatorUser $viewer) { + $can_create = PhabricatorPolicyFilter::hasCapability( + $viewer, + $this, + ProjectCreateProjectsCapability::CAPABILITY); + + $items = array(); + if ($can_create) { + $item = id(new PHUIListItemView()) + ->setName(pht('Project')) + ->setIcon('fa-briefcase') + ->setHref($this->getBaseURI().'create/'); + $items[] = $item; + } + + return $items; + } + protected function getCustomCapabilities() { return array( ProjectCreateProjectsCapability::CAPABILITY => array(),