Page MenuHomePhabricator

D12558.id30145.diff
No OneTemporary

D12558.id30145.diff

diff --git a/src/applications/passphrase/controller/PassphraseCredentialViewController.php b/src/applications/passphrase/controller/PassphraseCredentialViewController.php
--- a/src/applications/passphrase/controller/PassphraseCredentialViewController.php
+++ b/src/applications/passphrase/controller/PassphraseCredentialViewController.php
@@ -134,6 +134,7 @@
->setName(pht('Show Public Key'))
->setIcon('fa-download')
->setHref($this->getApplicationURI("public/{$id}/"))
+ ->setDisabled(!$can_edit)
->setWorkflow(true));
}
@@ -142,6 +143,7 @@
->setName($credential_conduit_text)
->setIcon($credential_conduit_icon)
->setHref($this->getApplicationURI("conduit/{$id}/"))
+ ->setDisabled(!$can_edit)
->setWorkflow(true));
$actions->addAction(
@@ -149,7 +151,7 @@
->setName($credential_lock_text)
->setIcon($credential_lock_icon)
->setHref($this->getApplicationURI("lock/{$id}/"))
- ->setDisabled($is_locked)
+ ->setDisabled(!$can_edit || $is_locked)
->setWorkflow(true));
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 31, 2:20 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8759451
Default Alt Text
D12558.id30145.diff (1 KB)

Event Timeline