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