juneauwang commented on issue #13378:
URL: https://github.com/apache/superset/issues/13378#issuecomment-802690442


   Hi @robdiciuccio  @gorcurek , I might have a workaround to fix this. 
Inspired by 
https://stackoverflow.com/questions/21138025/attributeerror-appctxglobals-object-has-no-attribute-user-in-flask
 and errors from gorcurek , I changed model/core.py with:
   
   ```
   ++      line: 56   from flask_login.utils import current_user
   ++      line: 278     @app.before_request
   ++      line:  279     def before_request():
   ++      line:  280         g.user = current_user
   ```
    I will test more next Monday and appreciate if you can have a test too also 
and share your opinions. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to