mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
Make SmartPlaylists read-only
This commit is contained in:
1 parent
d169f54e7d
commit
2e2a647e67
9 files changed
+54
-26
No files matched your search
@@ -176,6 +176,10 @@ func reorderItem(ds model.DataStore) http.HandlerFunc {
|
||||
}
|
||||
tracksRepo := ds.Playlist(r.Context()).Tracks(playlistId)
|
||||
err = tracksRepo.Reorder(id, newPos)
|
||||
if err == rest.ErrPermissionDenied {
|
||||
http.Error(w, err.Error(), http.StatusForbidden)
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user