fix(mail(js)): hide sign and encrypt options if not usable

When composing a message, don't offer to sign nor encrypt the message
if user has not uploaded a certificate or if S/MIME is disabled.
This commit is contained in:
Francis Lachapelle committed 2021-08-12 13:40:47 -04:00
1 parent 3388c18466
commit eb46415711
4 files changed
+19 -9

No files matched your search

+1 -1
View File
@@ -410,7 +410,7 @@ static SoProduct *preferencesProduct = nil;
{
auxAccount = [accounts objectAtIndex: i];
security = [auxAccount objectForKey: @"security"];
if (security)
if (security && [domainDefaults mailCertificateEnabled])
{
limitedSecurity = [NSMutableDictionary dictionaryWithDictionary: security];
if ([limitedSecurity objectForKey: @"certificate"])