diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-29 17:09:28 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-29 17:09:28 +0100 |
commit | 3734ff0bf3547a35769221035f8d6e54bf637b23 (patch) | |
tree | 35f47161749dc33820c155c5076180b747450089 /server/views.py | |
parent | add impersonate button (diff) | |
download | scout-subs-3734ff0bf3547a35769221035f8d6e54bf637b23.tar.gz scout-subs-3734ff0bf3547a35769221035f8d6e54bf637b23.zip |
fix show docs in ulist
Diffstat (limited to 'server/views.py')
-rw-r--r-- | server/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/views.py b/server/views.py index c569d56..ef13e45 100644 --- a/server/views.py +++ b/server/views.py @@ -392,7 +392,7 @@ def ulist(request): elif request.POST["action"][0] == 'f':
document = Document.objects.get(id=request.POST["action"][1:])
# check if user has permission to view document
- if document.group == groups[0]:
+ if document.group in groups:
vac_file = ""
health_file = ""
sign_doc_file = ""
|