From 038504f7b3c8de52bb314e84dd2517cd8442c770 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Thu, 15 Jun 2023 18:59:49 +0200 Subject: fix missing all query request --- server/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/views.py b/server/views.py index 2be7966..4953a1a 100644 --- a/server/views.py +++ b/server/views.py @@ -1810,7 +1810,7 @@ def media_request(request, id=0, t="", flag=""): usercode = UserCode.objects.get(id=id) if request.user.is_staff: groups = getGroups(request) - usercode_group = usercode.user.groups[0] + usercode_group = list(usercode.user.groups.all())[0] if usercode_group not in groups: return else: -- cgit v1.2.1