mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-29 00:39:28 +00:00
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:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user