From 2b718b46a76a3ea4a958804e0122e1b3e0caf106 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 9 Oct 2011 23:37:43 +0100 Subject: [PATCH] Return 404 if they're unauthed to view the application --- app/hr/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/hr/views.py b/app/hr/views.py index c6b8ee0..4a474af 100644 --- a/app/hr/views.py +++ b/app/hr/views.py @@ -68,6 +68,8 @@ class HrViewApplication(DetailView): elif perm == HR_ADMIN: context['hrstaff'] = True context['audit'] = self.object.audit_set.all() + else: + raise Http404 return context