Return 404 if they're unauthed to view the application

This commit is contained in:
2011-10-09 23:37:43 +01:00
parent f907415e07
commit 2b718b46a7

View File

@@ -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