Skip to content

Commit c501b44

Browse files
author
markus-moser
committed
[permissions] bugfixes #21
1 parent 3f4d39b commit c501b44

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/Controller/Admin/ActivitiesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ActivitiesController extends \Pimcore\Bundle\AdminBundle\Controller\AdminC
2929
{
3030
public function onKernelController(FilterControllerEvent $event)
3131
{
32-
$this->checkPermission('plugin_cmf_activityview');
32+
$this->checkPermission('plugin_cmf_perm_activityview');
3333
}
3434

3535
/**

src/Controller/Admin/CustomersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CustomersController extends Admin
4747
public function onKernelController(FilterControllerEvent $event)
4848
{
4949
parent::onKernelController($event);
50-
$this->checkPermission('plugin_cmf_customerview');
50+
$this->checkPermission('plugin_cmf_perm_customerview');
5151

5252
\Pimcore\Model\DataObject\AbstractObject::setHideUnpublished(true);
5353
}

src/Resources/public/js/ActivityView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var ActivityView = pimcore.registerNS("pimcore.plugin.customermanagementframework.ActivityView");
22

33
ActivityView.config = {
4-
PERMISSION: "plugin_cmf_activityview"
4+
PERMISSION: "plugin_cmf_perm_activityview"
55
};
66

77
ActivityView.ActivityTab = Class.create({

src/Resources/public/js/CustomerView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var CustomerView = pimcore.registerNS("pimcore.plugin.customermanagementframework.CustomerView");
22

33
CustomerView.config = {
4-
PERMISSION: "plugin_cmf_customerview"
4+
PERMISSION: "plugin_cmf_perm_customerview"
55
};
66

77
CustomerView.CustomerTab = Class.create({

src/Resources/public/js/startup.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pimcore.plugin.customermanagementframework = Class.create(pimcore.plugin.admin,
2828
}
2929

3030
// customer view
31-
if (user.isAllowed('plugin_cmf_customerview')) {
31+
if (user.isAllowed('plugin_cmf_perm_customerview')) {
3232
var customerViewPanelId = 'plugin_cmf_customerview';
3333
var item = {
3434
text: t('plugin_cmf_customerview'),
@@ -56,7 +56,7 @@ pimcore.plugin.customermanagementframework = Class.create(pimcore.plugin.admin,
5656
}
5757

5858
// customer duplicates view
59-
if (pimcore.settings.cmf.duplicatesViewEnabled && user.isAllowed('plugin_cmf_customerview')) {
59+
if (pimcore.settings.cmf.duplicatesViewEnabled && user.isAllowed('plugin_cmf_perm_customerview')) {
6060
var customerDuplicateViewPanelId = 'plugin_cmf_customerduplicatesview';
6161
var item = {
6262
text: t('plugin_cmf_customerduplicatesview'),
@@ -83,7 +83,7 @@ pimcore.plugin.customermanagementframework = Class.create(pimcore.plugin.admin,
8383
menuItems.add(item);
8484
}
8585

86-
if (user.isAllowed('plugin_cmf_customer_automation_rules')) {
86+
if (user.isAllowed('plugin_cmf_perm_customer_automation_rules')) {
8787
var customerAutomationRulesPanelId = 'plugin_cmf_customerautomationrules';
8888
var item = {
8989
text: t('plugin_cmf_customerautomationrules'),
@@ -101,7 +101,7 @@ pimcore.plugin.customermanagementframework = Class.create(pimcore.plugin.admin,
101101
menuItems.add(item);
102102
}
103103

104-
if (pimcore.settings.cmf.newsletterSyncEnabled && user.isAllowed('plugin_cmf_newsletter_enqueue_all_customers')) {
104+
if (pimcore.settings.cmf.newsletterSyncEnabled && user.isAllowed('plugin_cmf_perm_newsletter_enqueue_all_customers')) {
105105
var item = {
106106
text: t('plugin_cmf_newsletter_enqueue_all_customers'),
107107
iconCls: 'pimcore_icon_newsletter_enqueue_all_customers',

0 commit comments

Comments
 (0)