Skip to content

Commit b55556f

Browse files
🐛 fix: allow authenticated users to bypass privacy shield
1 parent 11e8a9a commit b55556f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/v1/breaches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ async def search_data_breaches(
309309
alert_record = datastore_client.get(alert_key)
310310

311311
# Always check shieldOn first (privacy - can't cache this)
312-
if alert_record and alert_record.get("shieldOn", False):
312+
if alert_record and alert_record.get("shieldOn", False) and not token:
313313
raise HTTPException(status_code=404, detail="Not found")
314314

315315
# Validate token if provided

0 commit comments

Comments
 (0)