fix(subsonic): someone else's private playlist reads as absent when an app tries to change it (#8021)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -197,6 +197,11 @@ func (h *pickHandlers) ownPlaylist(w http.ResponseWriter, r *http.Request, user
|
||||
}
|
||||
detail, err := h.playlists.Get(r.Context(), user.ID, id)
|
||||
switch {
|
||||
case errors.Is(err, playlists.ErrForbidden):
|
||||
// Get refuses only someone else's private list, which reads as
|
||||
// absent.
|
||||
h.failPlaylistChange(w, r, playlists.ErrNotFound)
|
||||
return nil, false
|
||||
case err != nil:
|
||||
h.failPlaylistChange(w, r, err)
|
||||
return nil, false
|
||||
|
||||
Reference in New Issue
Block a user