aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/templates/server/user_list.html2
-rw-r--r--server/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html
index 0a47428..e5fb0da 100644
--- a/server/templates/server/user_list.html
+++ b/server/templates/server/user_list.html
@@ -303,7 +303,7 @@
</div>
<div class="collapsible-body"><span>
<ul class="collapsible">
- {% for doc in request.user|user_docs:user.user %}
+ {% for doc in user|user_docs %}
<li>
<div class="collapsible-header"><a onclick="send('f{{doc.id}}')">{{doc.document_type.name}}</a></div>
</li>
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 = ""