Only allow GnuPG when openpgp setting is true

This commit is contained in:
the-djmaze 2022-01-28 16:58:52 +01:00
parent 58d02fa2e7
commit 70f315e76e

View file

@ -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())) {