Explorar el Código

Merge pull request #11595 from kichristensen/DeleteEmptyPlaylist

Support deleting empty playlist
Daniel Lee hace 7 años
padre
commit
bb7a6a0153
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/api/playlist.go

+ 1 - 1
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
 	}