billing: Use require_billing_access decorator in JSON endpoints.

This commit is contained in:
Vishnu Ks
2018-11-01 15:56:29 +05:30
committed by Rishi Gupta
parent 69e9a8f196
commit 677f34c2b9
4 changed files with 61 additions and 51 deletions

View File

@@ -19,7 +19,7 @@ i18n_urlpatterns = [
v1_api_and_json_patterns = [
url(r'^billing/downgrade$', rest_dispatch,
{'POST': 'corporate.views.downgrade'}),
url(r'billing/sources/change', rest_dispatch,
url(r'^billing/sources/change', rest_dispatch,
{'POST': 'corporate.views.replace_payment_source'}),
]