You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/12/16 19:13:40 UTC

[incubator-ponymail-foal] 01/02: Bugs in API for redacting attachments

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 28246903271b83052dd34cbb5a48f0ea67af8500
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 19:13:13 2021 +0000

    Bugs in API for redacting attachments
    
    This relates to #183
---
 server/endpoints/mgmt.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py
index c11e6e1..adc3c74 100644
--- a/server/endpoints/mgmt.py
+++ b/server/endpoints/mgmt.py
@@ -146,6 +146,7 @@ async def process(
         if email and isinstance(email, dict) and plugins.aaa.can_access_email(session, email):
             # Test if only privacy may have changed
             privacy_only = (
+                    attach_edit is None and
                     email["from"] == new_from and
                     email["subject"] == new_subject and
                     email["list"] == lid and