mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Return 404 if they're unauthed to view the application
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user