mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 08:32:21 +01:00
Fixes on arrows in the main screen
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user