Fixed: KPI access is now under employee permission in back-office

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
shazar rahman
2026-06-12 17:50:59 +05:30
parent a27e55c049
commit 653fdf3f7f
203 changed files with 9719 additions and 1593 deletions

View File

@@ -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();