diff options
author | michal <michal.sipa@mirumee.com> | 2017-09-19 16:22:45 +0200 |
---|---|---|
committer | michal <michal.sipa@mirumee.com> | 2017-09-19 16:22:45 +0200 |
commit | 2d35699c790c101ba1c1ad695161ff0020b7e880 (patch) | |
tree | 413fc58ea84a70f0e969fa9d764a8d025ac30d3c /saleor/discount | |
parent | 5b8b42c237c1ab40b7253ef5622b714f22edba29 (diff) | |
download | saleor-frontend-2d35699c790c101ba1c1ad695161ff0020b7e880.tar.gz saleor-frontend-2d35699c790c101ba1c1ad695161ff0020b7e880.tar.bz2 saleor-frontend-2d35699c790c101ba1c1ad695161ff0020b7e880.zip |
Add superuser_require
- Add superuser_require decorator to dashboard views.py
- Add @superuser_required decorators to every view from Configuration side menu in dashboard.
- Add superuser check in dashboard/base.html for Configuration side menu.
- Corrected migrations.
Diffstat (limited to 'saleor/discount')
-rw-r--r-- | saleor/discount/migrations/0005_auto_20170907_0827.py | 23 | ||||
-rw-r--r-- | saleor/discount/migrations/0005_auto_20170919_0839.py (renamed from saleor/discount/migrations/0006_auto_20170912_0401.py) | 4 |
2 files changed, 2 insertions, 25 deletions
diff --git a/saleor/discount/migrations/0005_auto_20170907_0827.py b/saleor/discount/migrations/0005_auto_20170907_0827.py deleted file mode 100644 index e3043fe0..00000000 --- a/saleor/discount/migrations/0005_auto_20170907_0827.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-07 13:27 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('discount', '0004_auto_20170206_0407'), - ] - - operations = [ - migrations.AlterModelOptions( - name='sale', - options={'permissions': (('view_sale', 'Can View Sale in Dashboard'), ('edit_sale', 'Can Edit Sale in Dashboard')), 'verbose_name': 'sale', 'verbose_name_plural': 'sales'}, - ), - migrations.AlterModelOptions( - name='voucher', - options={'permissions': (('view_voucher', 'Can View Voucher in Dashboard'), ('edit_voucher', 'Can Edit Voucher in Dashboard')), 'verbose_name': 'voucher', 'verbose_name_plural': 'vouchers'}, - ), - ] diff --git a/saleor/discount/migrations/0006_auto_20170912_0401.py b/saleor/discount/migrations/0005_auto_20170919_0839.py index e86f2138..bf71a518 100644 --- a/saleor/discount/migrations/0006_auto_20170912_0401.py +++ b/saleor/discount/migrations/0005_auto_20170919_0839.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-12 09:01 +# Generated by Django 1.11.4 on 2017-09-19 13:39 from __future__ import unicode_literals from django.db import migrations @@ -8,7 +8,7 @@ from django.db import migrations class Migration(migrations.Migration): dependencies = [ - ('discount', '0005_auto_20170907_0827'), + ('discount', '0004_auto_20170206_0407'), ] operations = [ |