Skip to content

Commit

Permalink
Merge pull request #1059 from qzapata/unauth_account_creation_fix
Browse files Browse the repository at this point in the history
Fix bug where unauthorized users could interact with source_access
  • Loading branch information
mgoffin committed Jul 29, 2019
2 parents 7b3a3c5 + 4eab101 commit 6b357da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crits/core/views.py
Expand Up @@ -714,6 +714,7 @@ def source_releasability(request):
error = "Expected AJAX POST!"
return render(request, "error.html", {"error" : error })

@user_passes_test(user_can_view_data)
def source_access(request):
"""
Modify a user's profile. Should be an AJAX POST.
Expand Down

0 comments on commit 6b357da

Please sign in to comment.