--- a/src/pyams_security/utility.py Wed Jul 15 11:52:09 2020 +0200
+++ b/src/pyams_security/utility.py Mon Jan 11 16:34:41 2021 +0100
@@ -265,12 +265,12 @@
principal_id = self.unauthenticated_userid(request)
if principal_id:
return principal_id
- manager = self._get_security_manager(request)
- if manager is not None:
- try:
+ try:
+ manager = self._get_security_manager(request)
+ if manager is not None:
return manager.authenticated_userid(request)
- except ConnectionStateError:
- pass
+ except ConnectionStateError:
+ pass
return None
@request_property(key=None)