Page MenuHomePhabricator

D10893.id26172.diff
No OneTemporary

D10893.id26172.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
Oct 20 2024, 12:48 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6734502
Default Alt Text
D10893.id26172.diff (957 B)

Event Timeline