Commit 144ac762 authored by Gabriel Monnerat's avatar Gabriel Monnerat

ERP5ExternalOauth2ExtractionPlugin: Fix query to find logins properly. It...

ERP5ExternalOauth2ExtractionPlugin: Fix query to find logins properly. It should be squashed in 4089f516
parent 0a1a500d
...@@ -182,7 +182,7 @@ class ERP5ExternalOauth2ExtractionPlugin: ...@@ -182,7 +182,7 @@ class ERP5ExternalOauth2ExtractionPlugin:
self.REQUEST['USER_CREATION_IN_PROGRESS'] = user_dict self.REQUEST['USER_CREATION_IN_PROGRESS'] = user_dict
else: else:
# create the user if not found # create the user if not found
if not self.searchUsers(id=user, exact_match=True): if not self.searchUsers(login=user, exact_match=True):
sm = getSecurityManager() sm = getSecurityManager()
if sm.getUser().getId() != ERP5Security.SUPER_USER: if sm.getUser().getId() != ERP5Security.SUPER_USER:
newSecurityManager(self, self.getUser(ERP5Security.SUPER_USER)) newSecurityManager(self, self.getUser(ERP5Security.SUPER_USER))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment