Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add migration files
akjanikc1d5e8a01767
diff --git a/saleor/core/permissions.py b/saleor/core/permissions.pyindex 1fad33952f..680e348544 100644--- a/saleor/core/permissions.py+++ b/saleor/core/permissions.py@@ -17,8 +17,8 @@ MODELS_PERMISSIONS = ['user.edit_user','voucher.view_voucher','voucher.edit_voucher',- 'group.view_group',- 'group.edit_group',+ 'user.view_group',+ 'user.edit_group',]diff --git a/saleor/site/migrations/0009_auto_20171107_0449.py b/saleor/site/migrations/0009_auto_20171107_0449.pynew file mode 100644index 0000000000..f34c8f096c--- /dev/null+++ b/saleor/site/migrations/0009_auto_20171107_0449.py@@ -0,0 +1,20 @@+# -*- coding: utf-8 -*-+# Generated by Django 1.11.5 on 2017-11-07 10:49+from __future__ import unicode_literals++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('site', '0008_auto_20171027_0856'),+ ]++ operations = [+ migrations.AlterField(+ model_name='authorizationkey',+ name='name',+ field=models.CharField(choices=[('facebook', 'Facebook-Oauth2'), ('google-oauth2', 'Google-Oauth2')], max_length=20, verbose_name='name'),+ ),+ ]diff --git a/saleor/userprofile/migrations/0011_auto_20171107_0449.py b/saleor/userprofile/migrations/0011_auto_20171107_0449.pynew file mode 100644index 0000000000..52be2b7390--- /dev/null+++ b/saleor/userprofile/migrations/0011_auto_20171107_0449.py@@ -0,0 +1,19 @@+# -*- coding: utf-8 -*-+# Generated by Django 1.11.5 on 2017-11-07 10:49+from __future__ import unicode_literals++from django.db import migrations+++class Migration(migrations.Migration):++ dependencies = [+ ('userprofile', '0010_auto_20170919_0839'),+ ]++ operations = [+ migrations.AlterModelOptions(+ name='user',+ options={'permissions': (('view_user', 'Can view users'), ('edit_user', 'Can edit users'), ('view_group', 'Can view groups'), ('edit_group', 'Can edit groups')), 'verbose_name': 'user', 'verbose_name_plural': 'users'},+ ),+ ]diff --git a/templates/dashboard/base.html b/templates/dashboard/base.htmlindex 1260f0341d..0ae4846975 100644--- a/templates/dashboard/base.html+++ b/templates/dashboard/base.html@@ -165,22 +165,26 @@</ul></li>{% endif %}- {% if user.is_superuser %}+ {% if perms.userprofile.view_group %}<li class="side-nav-section"><p>{% trans "Staff management" context "Management section" %}</p><ul>+ {% if perms.userprofile.edit_group %}<li class="{% block menu_staff_class %}{% endblock %}"><a href="{% url 'dashboard:staff-list' %}">{% trans "Staff members" context "Dashboard staff members list" %}</a></li>+ {% endif %}+ {% if perms.userprofile.edit_group %}<li class="{% block menu_groups_class %}{% endblock %}"><a href="{% url 'dashboard:group-list' %}">{% trans "Groups" context "Dashboard groups list" %}</a></li>+ {% endif %}</ul></li>{% endif %}