This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 74dc1bc7d09ef4a79394eb760b6d5334c025fddf Author: Daniel Gruno <[email protected]> AuthorDate: Mon Sep 7 03:42:19 2020 +0200 check for authoritative oauth for now --- server/plugins/aaa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/plugins/aaa.py b/server/plugins/aaa.py index 7fb5038..5f23578 100644 --- a/server/plugins/aaa.py +++ b/server/plugins/aaa.py @@ -39,8 +39,8 @@ def can_access_email(session: plugins.session.SessionObject, email) -> bool: def can_access_list(session: plugins.session.SessionObject, listid) -> bool: """Determine if a list can be accessed by the current user""" - # If logged in, we assume access for now...TO BE CHANGED - if session and session.credentials: + # If logged in via a known oauth, we assume access for now...TO BE CHANGED + if session and session.credentials.authoritative: return True else: return False
