Update login.py (#15320)

pull/15344/head
albcunha 1 year ago committed by GitHub
parent a8b600845e
commit 87efd4ab84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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