mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Fix a regression issue caused by #6815 fix related to import server issue for external users.
This commit is contained in:
parent
fcfe7cfb7c
commit
4d74f84d80
@ -793,8 +793,8 @@ def _does_user_exist(user, from_setup, auth_source=INTERNAL):
|
||||
This function will check user is exist or not. If exist then return
|
||||
"""
|
||||
if isinstance(user, User):
|
||||
user = user.username
|
||||
auth_source = user.auth_source
|
||||
user = user.username
|
||||
|
||||
new_user = User.query.filter_by(username=user,
|
||||
auth_source=auth_source).first()
|
||||
|
Loading…
Reference in New Issue
Block a user