Merge pull request #11595 from kichristensen/DeleteEmptyPlaylist

Support deleting empty playlist
This commit is contained in:
Daniel Lee 2018-04-16 17:06:59 +02:00 committed by GitHub
commit bb7a6a0153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}