mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
only premium user can encrypt emails with PGP
This commit is contained in:
parent
66a285e9fd
commit
24bb961b19
@ -307,9 +307,10 @@ def handle_forward(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> str:
|
||||
|
||||
mailbox = alias.mailbox
|
||||
mailbox_email = mailbox.email
|
||||
user = alias.user
|
||||
|
||||
# create PGP email if needed
|
||||
if mailbox.pgp_finger_print:
|
||||
if mailbox.pgp_finger_print and user.is_premium():
|
||||
LOG.d("Encrypt message using mailbox %s", mailbox)
|
||||
msg = prepare_pgp_message(msg, mailbox.pgp_finger_print)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user