Page MenuHomePhabricator

D12560.id30150.diff
No OneTemporary

D12560.id30150.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
Oct 19 2024, 10:22 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6731649
Default Alt Text
D12560.id30150.diff (927 B)

Event Timeline