Skip to content

Commit

Permalink
Fix a regression issue caused by #6815 fix related to import server i…
Browse files Browse the repository at this point in the history
…ssue for external users.
  • Loading branch information
khushboovashi committed Jan 3, 2024
1 parent fcfe7cf commit 4d74f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pgadmin/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4d74f84

Please sign in to comment.