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/13 10:49:29 UTC

[incubator-ponymail-foal] branch master updated: Assume email is private unless otherwise notified

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


The following commit(s) were added to refs/heads/master by this push:
     new f5cea26  Assume email is private unless otherwise notified
f5cea26 is described below

commit f5cea269273b0eefde417092ae3105c19f7391a3
Author: Sebb <se...@apache.org>
AuthorDate: Mon Dec 13 10:49:18 2021 +0000

    Assume email is private unless otherwise notified
    
    This relates to #173
---
 server/endpoints/preferences.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/endpoints/preferences.py b/server/endpoints/preferences.py
index 853c916..dcf49b1 100644
--- a/server/endpoints/preferences.py
+++ b/server/endpoints/preferences.py
@@ -35,7 +35,7 @@ async def process(
         if "@" in ml:
             lname, ldomain = ml.split("@", 1)
             can_access = True
-            if entry.get("private", False):
+            if entry.get("private", True):
                 can_access = plugins.aaa.can_access_list(session, ml)
             if server.config.ui.focus_domain != "*":
                 if '*' in server.config.ui.focus_domain: