Skip to content

Commit

Permalink
Handle 404 on access request forms view
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Sep 4, 2023
1 parent 8533685 commit 065683e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def user_request_resource_access(request, resource):
The galaxy group name must match the <resource> string encoded in the URL.
"""
if resource not in ACCESS_FORMS:
raise Http404
Form = ACCESS_FORMS[resource]
form = Form()
if request.POST:
Expand Down

0 comments on commit 065683e

Please sign in to comment.