Fix #275 -- Pass user executing a refund (for logging) (#287)

Except when triggered by a webhook.
This commit is contained in:
Tobias Kunze
2016-10-27 14:59:35 +02:00
committed by Raphael Michel
parent 2de328a33b
commit d13198167a
3 changed files with 5 additions and 5 deletions

View File

@@ -55,6 +55,6 @@ def webhook(request, *args, **kwargs):
order.log_action('pretix.plugins.stripe.event', data=event_json)
if order.status == Order.STATUS_PAID and (charge['refunds']['total_count'] or charge['dispute']):
mark_order_refunded(order)
mark_order_refunded(order, user=None)
return HttpResponse(status=200)