From d1c3915e3aa55d8acdc39071daacbfe4310c225b Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Wed, 20 Aug 2014 16:22:06 -0700 Subject: [PATCH] SSH Keys - allow viewer to download the private key Summary: ...cuz otherwise this is pretty pointless. Fixes T5931. Test Plan: generated a key, downloaded the key. previously download failed. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5931 Differential Revision: https://secure.phabricator.com/D10311 --- .../settings/panel/PhabricatorSettingsPanelSSHKeys.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php b/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php index c285b749b9..f9f27c4565 100644 --- a/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php +++ b/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php @@ -291,7 +291,7 @@ final class PhabricatorSettingsPanelSSHKeys array( 'name' => 'id_rsa_phabricator.key', 'ttl' => time() + (60 * 10), - 'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, + 'viewPolicy' => $viewer->getPHID(), )); list($type, $body, $comment) = self::parsePublicKey($public_key);