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 <[email protected]>
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

Reply via email to