frigate/web/src/components
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
..
audio Improve audio detection debugging (#19753) 2025-08-25 13:40:21 -05:00
auth Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
button Proper i18n date/time handling (#17858) 2025-04-22 15:50:21 -06:00
camera Rename nickname to friendly_name (#19782) 2025-08-26 15:29:52 -05:00
card Ensure alertVideos persistence is loaded before displaying thumb or preview (#19432) 2025-08-16 10:20:33 -05:00
dynamic Refactor and clean up i18n (#17198) 2025-03-17 06:26:01 -06:00
filter Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
graph Fix storage graph (#19230) 2025-07-22 06:24:15 -06:00
icons feat: add i18n (translation/localization) (#16877) 2025-03-16 10:36:20 -05:00
indicators Fixes (#18275) 2025-05-17 16:11:19 -06:00
input feat: Add camera nickname (#19567) 2025-08-26 11:15:01 -06:00
menu Merge remote-tracking branch 'origin/master' into dev 2025-09-04 06:33:22 -05:00
mobile UI tweaks (#17685) 2025-04-13 12:08:47 -06:00
navigation Fix some page i18n wrong (#17682) 2025-04-19 09:02:15 -05:00
overlay Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
player Merge remote-tracking branch 'origin/master' into dev 2025-09-04 06:33:22 -05:00
preview Improve review segmentation behavior (#19850) 2025-08-31 16:36:12 -05:00
settings Rename nickname to friendly_name (#19782) 2025-08-26 15:29:52 -05:00
timeline Implement support for no recordings indicator on timeline (#18363) 2025-08-16 10:20:33 -05:00
ui Improve timezone handling (#18257) 2025-05-15 17:13:32 -05:00
Logo.tsx Use cn() for class names throughout (#11278) 2024-05-07 08:00:25 -06:00
Statusbar.tsx Add support for rockchip GPU stats (#17812) 2025-04-19 16:34:05 -05:00
Wrapper.tsx spacing on mobile landscape (#11397) 2024-05-16 10:51:57 -06:00