Support deleting empty playlist

This commit is contained in:
Kim Christensen
2018-04-15 21:37:34 +02:00
parent 52bd51f2d0
commit 7534f0bff6

View File

@@ -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
}