fix(busylight): Pull-Token deaktivierter Firmen ablehnen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f0b436c91f
commit
cd7aaa9ce2
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user