Skip to content
Snippets Groups Projects
Verified Commit f660ad27 authored by Damien's avatar Damien
Browse files

FIX User without services

parent fba5e9dd
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,12 @@ class ServiceController
$servicesStoredInDB[] = $value['service_id'];
}
$menu = ServiceModel::getApplicationServicesByUserServices(['userServices' => $servicesStoredInDB, 'type' => 'menu']);
$menuModules = ServiceModel::getModulesServicesByUserServices(['userServices' => $servicesStoredInDB, 'type' => 'menu']);
$menu = array_merge($menu, $menuModules);
$menu = [];
if (!empty($servicesStoredInDB)) {
$menu = ServiceModel::getApplicationServicesByUserServices(['userServices' => $servicesStoredInDB, 'type' => 'menu']);
$menuModules = ServiceModel::getModulesServicesByUserServices(['userServices' => $servicesStoredInDB, 'type' => 'menu']);
$menu = array_merge($menu, $menuModules);
}
return $menu;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment