From 07fd57209cc8e5040d00aa43d37e63278ae2e562 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 23 Feb 2026 09:57:36 -0600 Subject: [PATCH] revert --- frigate/api/auth.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frigate/api/auth.py b/frigate/api/auth.py index 3dccfbf14..7c3a231ed 100644 --- a/frigate/api/auth.py +++ b/frigate/api/auth.py @@ -1002,7 +1002,8 @@ async def require_camera_access( roles_dict = request.app.frigate_config.auth.roles allowed_cameras = User.get_allowed_cameras(role, roles_dict, all_camera_names) - if role == "admin": + # Admin or full access bypasses + if role == "admin" or not roles_dict.get(role): return if camera_name not in allowed_cameras: @@ -1052,7 +1053,8 @@ async def require_go2rtc_stream_access( roles_dict = request.app.frigate_config.auth.roles allowed_cameras = User.get_allowed_cameras(role, roles_dict, all_camera_names) - if role == "admin": + # Admin or full access bypasses + if role == "admin" or not roles_dict.get(role): return owner_cameras = _get_stream_owner_cameras(request, stream_name)