mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-20 06:36:52 +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:
1 parent
3388c18466
commit
eb46415711
4 files changed
+19
-9
No files matched your search
@@ -945,7 +945,7 @@
|
||||
[mailAccount setObject: delegates forKey: @"delegates"];
|
||||
|
||||
// 9. Security
|
||||
if ([[_defaults mailCertificate] length])
|
||||
if ([[self domainDefaults] mailCertificateEnabled] && [[_defaults mailCertificate] length])
|
||||
{
|
||||
security = [NSMutableDictionary new];
|
||||
|
||||
|
||||
Reference in new issue
Block a user