Page MenuHomePhabricator

D12560.id30149.diff
No OneTemporary

D12560.id30149.diff

diff --git a/src/applications/oauthserver/controller/client/PhabricatorOAuthClientListController.php b/src/applications/oauthserver/controller/client/PhabricatorOAuthClientListController.php
--- a/src/applications/oauthserver/controller/client/PhabricatorOAuthClientListController.php
+++ b/src/applications/oauthserver/controller/client/PhabricatorOAuthClientListController.php
@@ -25,10 +25,15 @@
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
+ $can_create = $this->hasApplicationCapability(
+ PhabricatorOAuthServerCreateClientsCapability::CAPABILITY);
+
$crumbs->addAction(
id(new PHUIListItemView())
->setHref($this->getApplicationURI('client/create/'))
->setName(pht('Create Application'))
+ ->setDisabled(!$can_create)
+ ->setWorkflow(!$can_create)
->setIcon('fa-plus-square'));
return $crumbs;

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 8:27 PM (16 h, 14 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7021078
Default Alt Text
D12560.id30149.diff (927 B)

Event Timeline