Update login.py (#15320)
This commit is contained in:
parent
a8b600845e
commit
87efd4ab84
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user