Update login.py (#15320)

pull/14262/head
albcunha 1 year ago committed by Bharat Ramanathan
parent 38b922b10a
commit 75e1ed3e4c

@ -77,7 +77,7 @@ def login_required(func):
) )
if tenant_account_join: if tenant_account_join:
tenant, ta = 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 # Login admin
if account: if account:
account.current_tenant = tenant account.current_tenant = tenant

Loading…
Cancel
Save