aboutsummaryrefslogtreecommitdiffstats
path: root/server/views.py
diff options
context:
space:
mode:
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 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 = ""