From 70f315e76e75528e954ef7d1970cfbe5f46d0ca6 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 28 Jan 2022 16:58:52 +0100 Subject: [PATCH] Only allow GnuPG when openpgp setting is true --- snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php index b8499f9a8..72558cd44 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php @@ -1190,9 +1190,9 @@ class Actions if ($oConfig->Get('security', 'openpgp', false)) { $aResult[] = Enumerations\Capa::OPEN_PGP; - } - if (\SnappyMail\PGP\GnuPG::isSupported()) { - $aResult[] = Enumerations\Capa::GNUPG; + if (\SnappyMail\PGP\GnuPG::isSupported()) { + $aResult[] = Enumerations\Capa::GNUPG; + } } if ($bAdmin || ($oAccount && $oAccount->Domain()->UseSieve())) {