Timeline: Do not show disabled payment providers

This commit is contained in:
Raphael Michel
2019-05-28 12:52:12 +02:00
parent 70e9d9faad
commit 779ad11640

View File

@@ -173,6 +173,8 @@ def timeline_for_event(event, subevent=None):
# This is a special case, depending on payment providers not overriding BasePaymentProvider by too much, but it's
# preferrable to having all plugins implement this spearately.
for pprov in pprovs.values():
if not pprov.settings.get('_enabled', as_type=bool):
continue
availability_date = pprov.settings.get('_availability_date', as_type=RelativeDateWrapper)
if availability_date:
d = make_aware(datetime.combine(