Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add missing staff-check mixin
Marcin Gębalad990f4904d01
diff --git a/saleor/dashboard/payments/views.py b/saleor/dashboard/payments/views.pyindex dc571c8984..e11eb2eadf 100644--- a/saleor/dashboard/payments/views.py+++ b/saleor/dashboard/payments/views.py@@ -6,11 +6,12 @@ from django.views.generic import ListViewfrom payments.models import PAYMENT_STATUS_CHOICESfrom prices import Price-from ..views import FilterByStatusMixin, staff_member_required+from ..views import (FilterByStatusMixin, StaffMemberOnlyMixin,+ staff_member_required)from ...order.models import Payment-class PaymentList(FilterByStatusMixin, ListView):+class PaymentList(StaffMemberOnlyMixin, FilterByStatusMixin, ListView):model = Paymenttemplate_name = 'dashboard/payments/list.html'context_object_name = 'payments'