Page MenuHomePhabricator

D10893.diff
No OneTemporary

D10893.diff

diff --git a/src/applications/project/application/PhabricatorProjectApplication.php b/src/applications/project/application/PhabricatorProjectApplication.php
--- a/src/applications/project/application/PhabricatorProjectApplication.php
+++ b/src/applications/project/application/PhabricatorProjectApplication.php
@@ -92,6 +92,24 @@
);
}
+ 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(),

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 1:29 AM (18 h, 15 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6920111
Default Alt Text
D10893.diff (957 B)

Event Timeline