mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 09:02:20 +01:00
Fix move down to actually move down instead of up.
This commit is contained in:
@ -139,7 +139,7 @@ def move_down(request):
|
|||||||
playlist_song = get_object_or_404(PlaylistSong, id=request.POST.get('id'))
|
playlist_song = get_object_or_404(PlaylistSong, id=request.POST.get('id'))
|
||||||
if playlist_song.user != request.user and not request.user.has_perm('queues.can_move'):
|
if playlist_song.user != request.user and not request.user.has_perm('queues.can_move'):
|
||||||
return HttpResponseForbidden()
|
return HttpResponseForbidden()
|
||||||
playlist_song.move_up()
|
playlist_song.move_down()
|
||||||
return JsonResponse({})
|
return JsonResponse({})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user