mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
only premium user can encrypt emails with PGP
This commit is contained in:
parent
66a285e9fd
commit
24bb961b19
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue