Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add new permission to panel and add corresponding migration

dominik-zeglen1c8d88563b58
diff --git a/saleor/core/permissions.py b/saleor/core/permissions.py
index f8e9ac7015..674e6afb53 100644
--- a/saleor/core/permissions.py
+++ b/saleor/core/permissions.py
@@ -25,6 +25,7 @@ MODELS_PERMISSIONS = [
'user.edit_group',
'user.view_staff',
'user.edit_staff',
+ 'user.impersonate_user',
'voucher.view_voucher',
'voucher.edit_voucher',
]
diff --git a/saleor/userprofile/migrations/0011_auto_20171113_0355.py b/saleor/userprofile/migrations/0011_auto_20171113_0355.py
new file mode 100644
index 0000000000..5152d331af
--- /dev/null
+++ b/saleor/userprofile/migrations/0011_auto_20171113_0355.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2017-11-13 09:55
+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'), ('impersonate_user', 'Can impersonate users')), 'verbose_name': 'user', 'verbose_name_plural': 'users'},
+ ),
+ ]