Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
WIP
Pacu2137ac21fd803
diff --git a/saleor/core/permissions.py b/saleor/core/permissions.pyindex b058136750..0a6c909aac 100644--- a/saleor/core/permissions.py+++ b/saleor/core/permissions.py@@ -10,8 +10,6 @@ MODELS_PERMISSIONS = ['order.manage_orders','page.manage_pages','product.manage_products',- 'product.manage_products',- 'product.manage_products','shipping.manage_shipping','site.manage_settings']diff --git a/saleor/product/models.py b/saleor/product/models.pyindex 02625610f7..552bb256b9 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -38,12 +38,6 @@ class Category(MPTTModel, SeoModel):objects = models.Manager()tree = TreeManager()- class Meta:- app_label = 'product'- permissions = ((- 'manage_products',- pgettext_lazy('Permission description', 'Can edit categories')),)-def __str__(self):return self.name@@ -116,11 +110,9 @@ class Product(SeoModel):class Meta:app_label = 'product'permissions = (- ('manage_products',- pgettext_lazy('Permission description', 'Can edit products')),('manage_products',pgettext_lazy(- 'Permission description', 'Can edit product properties')))+ 'Permission description', 'Can edit product properties')),)def __iter__(self):if not hasattr(self, '__variants'):diff --git a/templates/dashboard/customer/list.html b/templates/dashboard/customer/list.htmlindex 49dd83eb01..9bcdb59c0c 100644--- a/templates/dashboard/customer/list.html+++ b/templates/dashboard/customer/list.html@@ -13,13 +13,11 @@{% block menu_customers_class %}active{% endblock %}{% block header_extra %}- {% if perms.account.manage_users %}- <div class="btn-fab-fixed">- <a href="{% url 'dashboard:customer-create' %}" class="btn-fab-default waves-effect waves-light" title="{% trans "Add customer" context "Customer list add button text" %}" >- <svg data-src="{% static "dashboard/images/add.svg" %}" />- </a>- </div>- {% endif %}+ <div class="btn-fab-fixed">+ <a href="{% url 'dashboard:customer-create' %}" class="btn-fab-default waves-effect waves-light" title="{% trans "Add customer" context "Customer list add button text" %}" >+ <svg data-src="{% static "dashboard/images/add.svg" %}" />+ </a>+ </div>{% endblock %}{% block breadcrumbs %}