Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize authored Feb 12, 2024
2 parents 6533004 + 2dfde0d commit 17d89bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apptax/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def create_app():
if "CODE_APPLICATION" not in app.config:
app.config["CODE_APPLICATION"] = "TH"

@app.before_request
def load_current_user():
g.current_user = current_user if current_user.is_authenticated else None

with app.app_context():
from pypnusershub import routes

Expand Down

0 comments on commit 17d89bf

Please sign in to comment.