Added tenant information to the session...
This commit is contained in:
8
eveai_app/utils/security.py
Normal file
8
eveai_app/utils/security.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from flask import session
|
||||
from ..models.user import User, Tenant
|
||||
|
||||
|
||||
# Definition of Trigger Handlers
|
||||
def set_tenant_session_data(sender, user):
|
||||
tenant = Tenant.query.filter_by(id=user.tenant_id).first()
|
||||
session['tenant'] = tenant
|
||||
Reference in New Issue
Block a user