Hi,

Please find attached patch to fix issue where desktop user was logged in
each request
in runtime.

-- 
*Harshal Dhumal*
*Sr. Software Engineer*

EnterpriseDB India: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
diff --git a/web/pgadmin/__init__.py b/web/pgadmin/__init__.py
index a1d10b8..48c1b56 100644
--- a/web/pgadmin/__init__.py
+++ b/web/pgadmin/__init__.py
@@ -535,7 +535,9 @@ def create_app(app_name=None):
             ):
                 abort(401)
 
-        if not config.SERVER_MODE:
+    if not config.SERVER_MODE:
+        @app.before_first_request
+        def before_first_request():
             user = user_datastore.get_user(config.DESKTOP_USER)
 
             # Throw an error if we failed to find the desktop user, to give

Reply via email to