aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/views.py2
-rw-r--r--version.txt2
2 files changed, 2 insertions, 2 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:
diff --git a/version.txt b/version.txt
index 68a0f2d..e463c6e 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.6
-rev=20
+rev=21