frigate/web/src/components/overlay
Josh Hawkins ed1e3a7c9a
Enhance user roles to limit camera access (#20024)
* update config for roles and add validator

* ensure admin and viewer are never overridden

* add class method to user to retrieve all allowed cameras

* enforce config roles in auth api endpoints

* add camera access api dependency functions

* protect review endpoints

* protect preview endpoints

* rename param name for better fastapi injection matching

* remove unneeded

* protect export endpoints

* protect event endpoints

* protect media endpoints

* update auth hook for allowed cameras

* update default app view

* ensure anonymous user always returns all cameras

* limit cameras in explore

* cameras is already a list

* limit cameras in review/history

* limit cameras in live view

* limit cameras in camera groups

* only show face library and classification in sidebar for admin

* remove check in delete reviews

since admin role is required, no need to check camera access. fixes failing test

* pass request with camera access for tests

* more async

* camera access tests

* fix proxy auth tests

* allowed cameras for review tests

* combine event tests and refactor for camera access

* fix post validation for roles

* don't limit roles in create user dialog

* fix triggers endpoints

no need to run require camera access dep since the required role is admin

* fix type

* create and edit role dialogs

* delete role dialog

* fix role change dialog

* update settings view for roles

* i18n changes

* minor spacing tweaks

* docs

* use badges and camera name label component

* clarify docs

* display all cameras badge for admin and viewer

* i18n fix

* use validator to prevent reserved and empty roles from being assigned

* split users and roles into separate tabs in settings

* tweak docs

* clarify docs

* change icon

* don't memoize roles

always recalculate on component render
2025-09-12 05:19:29 -06:00
..
detail feat: Add camera nickname (#19567) 2025-08-26 11:15:01 -06:00
dialog Improve LPR regex support (#19767) 2025-08-26 08:11:37 -05:00
CameraInfoDialog.tsx Rename nickname to friendly_name (#19782) 2025-08-26 15:29:52 -05:00
ClassificationSelectionDialog.tsx Improve object classification (#18908) 2025-08-16 10:20:33 -05:00
CreateRoleDialog.tsx Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
CreateTriggerDialog.tsx Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
CreateUserDialog.tsx Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
DebugDrawingLayer.tsx Object area debugging and improvements (#16432) 2025-02-09 14:48:23 -07:00
DeleteRoleDialog.tsx Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
DeleteTriggerDialog.tsx Semantic Search Triggers (#18969) 2025-08-16 10:20:33 -05:00
DeleteUserDialog.tsx Semantic Search Triggers (#18969) 2025-08-16 10:20:33 -05:00
EditRoleCamerasDialog.tsx Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
ExportDialog.tsx fix export dialog overflowing due to i18n time lengths (#19736) 2025-08-25 17:11:42 -06:00
FaceSelectionDialog.tsx Fixes (#18338) 2025-05-22 09:38:14 -06:00
GPUInfoDialog.tsx Fixes (#17961) 2025-04-29 17:03:44 -05:00
ImagePicker.tsx Semantic Search Triggers (#18969) 2025-08-16 10:20:33 -05:00
LogInfoDialog.tsx feat: document locale url (#18409) 2025-05-28 06:10:45 -06:00
MobileCameraDrawer.tsx feat: Add camera nickname (#19567) 2025-08-26 11:15:01 -06:00
MobileReviewSettingsDrawer.tsx Implement smart capitalization based on locale (#17860) 2025-04-22 16:21:09 -06:00
MobileTimelineDrawer.tsx fix missing i18n keys (#18309) 2025-05-19 16:45:02 -05:00
ReviewActivityCalendar.tsx Timezone fix (#19293) 2025-07-26 18:24:08 -06:00
RoleChangeDialog.tsx Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
SaveExportOverlay.tsx feat: add i18n (translation/localization) (#16877) 2025-03-16 10:36:20 -05:00
SetPasswordDialog.tsx Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
TimelineDataOverlay.tsx Implement object lifecycle pane (#13550) 2024-09-04 07:46:49 -06:00