Explorar el Código

Update login.py (#15320)

albcunha hace 1 mes
padre
commit
87efd4ab84
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/libs/login.py

+ 1 - 1
api/libs/login.py

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