Update login.py (#15320)

This commit is contained in:
albcunha 2025-03-09 22:49:14 -03:00 committed by GitHub
parent a8b600845e
commit 87efd4ab84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ def login_required(func):
)
if tenant_account_join:
tenant, ta = tenant_account_join
account = Account.query.filter_by(id=ta.account_id).first()
account = db.session.query(Account).filter_by(id=ta.account_id).first()
# Login admin
if account:
account.current_tenant = tenant