aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/views.py b/server/views.py
index 49d88f3..09ab79a 100644
--- a/server/views.py
+++ b/server/views.py
@@ -548,7 +548,7 @@ def doctype(request):
for doc in docs:
capo = "no"
- if "capi" in doc.user.groups.values_list('name', flat=True) or doc.user.is_staff:
+ if "capi" in doc.usercode.user.groups.values_list('name', flat=True) or doc.usercode.user.is_staff:
capo = "si"
write_data = [
@@ -618,7 +618,7 @@ def doctype(request):
for doc in docs:
capo = "no"
- if "capi" in doc.user.groups.values_list('name', flat=True) or doc.user.is_staff:
+ if "capi" in doc.usercode.user.groups.values_list('name', flat=True) or doc.usercode.user.is_staff:
capo = "si"
write_data = [