Commit 3a81703a authored by Mirko Vucicevich's avatar Mirko Vucicevich
Browse files

Fix key detection

parent 0018d441
......@@ -73,7 +73,7 @@ def postHook(request, project_slug, endpoint):
if hook is None:
return HttpResponse(status=404)
print(key, hook.project.slug)
if hook.project.slug != key:
if hook.project.api_key != key:
return JsonResponse(
{'error': 'Invalid Key'},
status=403
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment