Chore: Require OrgId to be specified in delete playlist command (#29117)

This commit is contained in:
Emil Hessman
2020-11-14 09:49:07 +01:00
committed by GitHub
parent fbf0d2c086
commit bdc6e2fe0a
2 changed files with 31 additions and 3 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func GetPlaylist(query *models.GetPlaylistByIdQuery) error {
}
func DeletePlaylist(cmd *models.DeletePlaylistCommand) error {
if cmd.Id == 0 {
if cmd.Id == 0 || cmd.OrgId == 0 {
return models.ErrCommandValidationFailed
}