Change EcommerceService's is_enabled to accept User instead of request
. And change the verification link in the sidebar to redirect to new basket if the EcommerceService is enabled.
This commit is contained in:
@@ -743,7 +743,7 @@ def dashboard(request):
|
||||
}
|
||||
|
||||
ecommerce_service = EcommerceService()
|
||||
if ecommerce_service.is_enabled(request):
|
||||
if ecommerce_service.is_enabled(request.user):
|
||||
context.update({
|
||||
'use_ecommerce_payment_flow': True,
|
||||
'ecommerce_payment_page': ecommerce_service.payment_page_url(),
|
||||
|
||||
Reference in New Issue
Block a user