mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +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:
|
elif perm == HR_ADMIN:
|
||||||
context['hrstaff'] = True
|
context['hrstaff'] = True
|
||||||
context['audit'] = self.object.audit_set.all()
|
context['audit'] = self.object.audit_set.all()
|
||||||
|
else:
|
||||||
|
raise Http404
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user