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
2021-08-12 13:40:35 -04:00
parent 3388c18466
commit eb46415711
4 changed files with 19 additions and 9 deletions

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"])