Support deleting empty playlist

pull/11595/head
Kim Christensen 8 years ago
parent 52bd51f2d0
commit 7534f0bff6
  1. 2
      pkg/api/playlist.go

@ -33,7 +33,7 @@ func ValidateOrgPlaylist(c *m.ReqContext) {
return
}
if len(items) == 0 {
if len(items) == 0 && c.Context.Req.Method != "DELETE" {
c.JsonApiErr(404, "Playlist is empty", itemsErr)
return
}

Loading…
Cancel
Save