check access to similarity search event id camera

This commit is contained in:
Josh Hawkins 2026-04-23 12:54:31 -05:00
parent e1cf400861
commit 4adb778c27

View File

@ -754,6 +754,15 @@ def events_search(
status_code=404,
)
if search_event.camera not in allowed_cameras:
return JSONResponse(
content={
"success": False,
"message": "Event not found",
},
status_code=404,
)
thumb_result = context.search_thumbnail(search_event)
thumb_ids = {result[0]: result[1] for result in thumb_result}
search_results = {