mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Use .__ne__ instead of 'is not None' statement to fix the API test cases.
This commit is contained in:
parent
bce7e8346d
commit
9a0d92469b
@ -310,7 +310,7 @@ def create_app(app_name=None):
|
||||
if config.SERVER_MODE is False:
|
||||
# Get the user language preference from the miscellaneous module
|
||||
user_id = None
|
||||
if current_user.is_authenticated:
|
||||
if current_user.__ne__(None) and current_user.is_authenticated:
|
||||
user_id = current_user.id
|
||||
else:
|
||||
user = user_datastore.find_user(email=config.DESKTOP_USER)
|
||||
|
Loading…
Reference in New Issue
Block a user