1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

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
This commit is contained in:
Bob Trahan 2014-08-20 16:22:06 -07:00
parent 0ddafc4bcd
commit d1c3915e3a

View file

@ -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);