aboutsummaryrefslogtreecommitdiffstats
path: root/server/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2023-06-15 18:59:49 +0200
committerAndrea Lepori <aleporia@gmail.com>2023-06-15 19:00:00 +0200
commit038504f7b3c8de52bb314e84dd2517cd8442c770 (patch)
treeb23df2e3e1f09cae24b5d423dd0532302f8eb187 /server/views.py
parentfix group name check instead of obj (diff)
downloadscout-subs-038504f7b3c8de52bb314e84dd2517cd8442c770.tar.gz
scout-subs-038504f7b3c8de52bb314e84dd2517cd8442c770.zip
fix missing all query request
Diffstat (limited to 'server/views.py')
-rw-r--r--server/views.py2
1 files changed, 1 insertions, 1 deletions
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: