mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-28 08:17:07 +03:00
admin-only frigate+ frame upload
the UI already hides this so this is just to fix the endpoint
This commit is contained in:
@@ -434,7 +434,7 @@ async def get_snapshot_from_recording(
|
|||||||
|
|
||||||
|
|
||||||
@router.post(
|
@router.post(
|
||||||
"/{camera_name}/plus/{frame_time}", dependencies=[Depends(require_camera_access)]
|
"/{camera_name}/plus/{frame_time}", dependencies=[Depends(require_role(["admin"]))]
|
||||||
)
|
)
|
||||||
async def submit_recording_snapshot_to_plus(
|
async def submit_recording_snapshot_to_plus(
|
||||||
request: Request, camera_name: str, frame_time: str
|
request: Request, camera_name: str, frame_time: str
|
||||||
|
|||||||
Reference in New Issue
Block a user