Fixed: KPI access is now under employee permission in back-office
Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
@@ -714,8 +714,11 @@ class AdminThemesControllerCore extends AdminController
|
||||
}
|
||||
|
||||
$ids_themes = Tools::unSerialize(Configuration::get('PS_ADDONS_THEMES_IDS'));
|
||||
if (array_key_exists($obj->directory, $ids_themes)) {
|
||||
unset($ids_themes[$obj->directory]);
|
||||
|
||||
if(is_array($ids_themes)) {
|
||||
if (array_key_exists($obj->directory, $ids_themes)) {
|
||||
unset($ids_themes[$obj->directory]);
|
||||
}
|
||||
}
|
||||
|
||||
$obj->removeMetas();
|
||||
@@ -1206,7 +1209,9 @@ class AdminThemesControllerCore extends AdminController
|
||||
');
|
||||
|
||||
foreach ($hook_list as &$row) {
|
||||
$row['exceptions'] = trim(preg_replace('/(,,+)/', ',', $row['exceptions']), ',');
|
||||
if($row['exceptions']){
|
||||
$row['exceptions'] = trim(preg_replace('/(,,+)/', ',', $row['exceptions']), ',');
|
||||
}
|
||||
}
|
||||
|
||||
$native_modules = $this->getNativeModule();
|
||||
|
||||
Reference in New Issue
Block a user