Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17927237
D12558.id30145.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12558.id30145.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12558: Passphrase credentials should correctly grey out disallowed actions.
Attached
Detach File
Event Timeline
Log In to Comment