Commit bb7a6a01 by Daniel Lee Committed by GitHub

Merge pull request #11595 from kichristensen/DeleteEmptyPlaylist

Support deleting empty playlist
parents ed44face 7534f0bf
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment