blakeblackshear.frigate/migrations
Josh Hawkins 74ca009b0b
UI viewer role (#16978)
* db migration

* db model

* assign admin role on password reset

* add role to jwt and api responses

* don't restrict api access for admins yet

* use json response

* frontend auth context

* update auth form for profile endpoint

* add access denied page

* add protected routes

* auth hook

* dialogs

* user settings view

* restrict viewer access to settings

* restrict camera functions for viewer role

* add password dialog to account menu

* spacing tweak

* migrator default to admin

* escape quotes in migrator

* ui tweaks

* tweaks

* colors

* colors

* fix merge conflict

* fix icons

* add api layer enforcement

* ui tweaks

* fix error message

* debug

* clean up

* remove print

* guard apis for admin only

* fix tests

* fix review tests

* use correct error responses from api in toasts

* add role to account menu
2025-03-08 10:01:08 -06:00
..
001_create_events_table.py
002_add_clip_snapshot.py
003_create_recordings_table.py Migrate pydantic to V2 (#10142) 2024-02-29 16:10:13 -07:00
004_add_bbox_region_area.py
005_make_end_time_nullable.py
006_add_motion_active_objects.py Add region count to database and use for motion activity (#10480) 2024-03-15 09:29:22 -06:00
007_add_retain_indefinitely.py
008_add_sub_label.py
009_add_object_filter_ratio.py
010_add_plus_image_id.py
011_update_indexes.py Migrate pydantic to V2 (#10142) 2024-02-29 16:10:13 -07:00
012_add_segment_size.py
013_create_timeline_table.py
014_event_updates_for_fp.py
015_event_refactor.py
016_sublabel_increase.py
017_update_indexes.py Migrate pydantic to V2 (#10142) 2024-02-29 16:10:13 -07:00
018_add_dbfs.py
019_create_regions_table.py Migrate pydantic to V2 (#10142) 2024-02-29 16:10:13 -07:00
020_update_index_recordings.py Migrate pydantic to V2 (#10142) 2024-02-29 16:10:13 -07:00
021_create_previews_table.py Migrate pydantic to V2 (#10142) 2024-02-29 16:10:13 -07:00
022_create_review_segment_table.py
023_add_regions.py Add region count to database and use for motion activity (#10480) 2024-03-15 09:29:22 -06:00
024_create_export_table.py Save exports to database (#11040) 2024-04-19 17:11:41 -05:00
025_create_user_table.py Auth! (#11347) 2024-05-18 10:36:13 -06:00
026_add_notification_tokens.py Implement support for notifications (#12523) 2024-08-29 20:19:50 -06:00
027_create_explore_index.py Optimize Explore summary database query (#14797) 2024-11-04 16:04:49 -07:00
028_optional_event_thumbnail.py Remove thumb from database field (#16647) 2025-02-18 07:46:29 -07:00
029_add_user_role.py UI viewer role (#16978) 2025-03-08 10:01:08 -06:00