05/22 Fix app error after deloying license system
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ def create_app(config_name=None):
|
||||
# ── Context processors ────────────────────────────────────────────────────
|
||||
@app.context_processor
|
||||
def inject_globals():
|
||||
from flask import has_request_context
|
||||
from flask import has_request_context, current_app
|
||||
from flask_login import current_user
|
||||
from app.models import SystemSetting
|
||||
unread = 0
|
||||
|
||||
Reference in New Issue
Block a user