fix(busylight): Pull-Token deaktivierter Firmen ablehnen
Security Audit / Python Dependency Audit (push) Canceled after 0s
Security Audit / Node.js Dependency Audit (push) Canceled after 0s
Security Audit / Frontend Build (tsc + vite) (push) Canceled after 0s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Sonnet 5.5 committed 2026-10-30 13:53:51 +01:00
1 parent f0b436c91f
commit cd7aaa9ce2
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ async def _company_from_token(
raise HTTPException(status_code=401, detail="Missing token")
token_hash = _hash_token(credentials.credentials)
company = await db.scalar(
select(Company).where(Company.busylight_pull_token_hash == token_hash)
select(Company).where(Company.busylight_pull_token_hash == token_hash, Company.is_active.is_(True))
)
if company is None:
raise HTTPException(status_code=401, detail="Invalid token")