mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-20 17:46:59 +00:00
* fix: require admin for radio mutations Subsonic internet radio station mutation endpoints are admin-only in the Subsonic and OpenSubsonic specs, but the router only required an authenticated player. Add a reusable Subsonic admin middleware and apply it to create, update, and delete radio routes while leaving the list endpoint available to authenticated users. Cover the middleware and router behavior with unit and e2e tests. * fix: streamline admin-only routes for internet radio station management Signed-off-by: Deluan <deluan@navidrome.org> * fix: use admin-only middleware for starting scans Signed-off-by: Deluan <deluan@navidrome.org> * test: align start scan authorization coverage StartScan authorization now lives in the shared Subsonic admin middleware instead of the handler. Remove the obsolete direct handler unit assertion so the package tests reflect the route-level guard covered by middleware and e2e tests. * fix: require admin for getUsers The Subsonic getUsers endpoint exposes user-list semantics and should use the same shared admin middleware as other admin-only management endpoints. Apply the route-level guard while leaving getUser unchanged, and update the multi-user e2e coverage to expect regular users to receive an authorization failure. * test: cover admin-only Subsonic access Add e2e coverage that admins can still call getUsers after the route-level guard and that regular authenticated users can still list internet radio stations. These cases capture the access boundaries raised during PR review. --------- Signed-off-by: Deluan <deluan@navidrome.org> |
||
|---|---|---|
| .. | ||
| doc.go | ||
| e2e_suite_test.go | ||
| subsonic_album_lists_test.go | ||
| subsonic_bookmarks_test.go | ||
| subsonic_browsing_test.go | ||
| subsonic_media_annotation_test.go | ||
| subsonic_media_retrieval_test.go | ||
| subsonic_multilibrary_test.go | ||
| subsonic_multiuser_test.go | ||
| subsonic_playlists_test.go | ||
| subsonic_radio_test.go | ||
| subsonic_scan_test.go | ||
| subsonic_searching_test.go | ||
| subsonic_sharing_test.go | ||
| subsonic_sonic_similarity_test.go | ||
| subsonic_stream_test.go | ||
| subsonic_system_test.go | ||
| subsonic_transcode_test.go | ||
| subsonic_users_test.go | ||