Commit 42f90f79 authored by Jens Langhammer's avatar Jens Langhammer

fix undefined AUTO_CLAIM_ENABLED

parent a0adeab8
Pipeline #3544 failed with stages
in 2 minutes and 36 seconds
......@@ -127,7 +127,7 @@ class LegacyObjectView(View):
upload, created = upload_view.handle_post_file(request.FILES['imagedata'])
if created:
# Run auto-claim
if settings.AUTO_CLAIM_ENABLED and 'username' in request.POST:
if CONFIG.get('auto_claim_enabled', False) and 'username' in request.POST:
matching = User.objects.filter(username=request.POST.get('username'))
if matching.exists():
upload.user = matching.first()
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