aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/views.py b/client/views.py
index 01909d7..eb2586a 100644
--- a/client/views.py
+++ b/client/views.py
@@ -184,7 +184,7 @@ def create(request):
id=request.POST["doctype"])
# get list of docs with that type
- current_docs = Document.objects.filter(document_type=document_type)
+ current_docs = Document.objects.filter(user=request.user).filter(document_type=document_type)
if len(current_docs) > 0:
# if there is already a document with that type abort (user is cheating)
return