finish implementing Flask_Security_Too and finished dynamic navbar creation.
This commit is contained in:
9
eveai_app/context_processors.py
Normal file
9
eveai_app/context_processors.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from flask_security import current_user
|
||||
|
||||
|
||||
# def inject_user():
|
||||
# if current_user:
|
||||
# print("Injecting current_user: ", current_user)
|
||||
# else:
|
||||
# print("No user to inject")
|
||||
# return {'current_user': current_user}
|
||||
Reference in New Issue
Block a user