Fixes on arrows in the main screen

This commit is contained in:
oslomp
2018-12-16 21:39:11 +01:00
parent 6adbecec9c
commit 6cf1b4bef2
3 changed files with 23 additions and 5 deletions

View File

@ -201,7 +201,14 @@ def move_up(request):
@require_http_methods(["POST"])
@api_auth_required
def move_down(request):
# print('')
# print(request)
# print('')
ide=(request.POST.get('id'))
# print('')
playlist_song = get_object_or_404(PlaylistSong, id=request.POST.get('id'))
# print(playlist_song)
# print('')
if playlist_song.user != request.user and not request.user.has_perm('queues.can_move'):
return HttpResponseForbidden()
playlist_song.move_down()