diff options
author | Andrea Lepori <aleporia@gmail.com> | 2023-09-26 17:56:56 +0200 |
---|---|---|
committer | Andrea Lepori <aleporia@gmail.com> | 2023-09-26 17:57:10 +0200 |
commit | 19d4249bbe1f0cc5fd9d7400f0b1dfcbdab85bcb (patch) | |
tree | 867044ff2824de4c0d180ba44213cb1a37d196d3 | |
parent | fix not showing errors for date pickers (diff) | |
download | scout-subs-19d4249bbe1f0cc5fd9d7400f0b1dfcbdab85bcb.tar.gz scout-subs-19d4249bbe1f0cc5fd9d7400f0b1dfcbdab85bcb.zip |
fix not accessing user through usercode
Diffstat (limited to '')
-rw-r--r-- | server/views.py | 4 | ||||
-rw-r--r-- | version.txt | 2 |
2 files changed, 3 insertions, 3 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 = [
diff --git a/version.txt b/version.txt index 9eaf79b..84bab50 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ version=0.7 -rev=10 +rev=11 |