mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Fixed UnboundLocalError where local variable 'user_id' referenced before assignment. Fixes #6671
This commit is contained in:
parent
7798584e1c
commit
3f3416c13e
@ -20,3 +20,4 @@ Bug fixes
|
||||
|
||||
| `Issue #6564 <https://redmine.postgresql.org/issues/6564>`_ - Fixed an issue where columns with sequences get altered unnecessarily with a schema diff tool.
|
||||
| `Issue #6572 <https://redmine.postgresql.org/issues/6572>`_ - Partially fixes the data output panel display issue.
|
||||
| `Issue #6671 <https://redmine.postgresql.org/issues/6671>`_ - Fixed UnboundLocalError where local variable 'user_id' referenced before assignment.
|
||||
|
@ -305,6 +305,7 @@ def create_app(app_name=None):
|
||||
language = 'en'
|
||||
if config.SERVER_MODE is False:
|
||||
# Get the user language preference from the miscellaneous module
|
||||
user_id = None
|
||||
if current_user.is_authenticated:
|
||||
user_id = current_user.id
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user