Skip to content
Snippets Groups Projects
Commit e923d42a authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix : bug 83 Régression sur les champs customs

parent 312e1383
No related branches found
No related tags found
No related merge requests found
......@@ -1311,6 +1311,24 @@ class core_tools extends functions
return _NO_LABEL_FOUND;
}
/**
* Test if a service is enabled
*
* @param $id_service string Service identifier
* @return boolean true if enabled false if not
*/
public function service_is_enabled($id_service)
{
for($i=0;$i<count($_SESSION['enabled_services']);$i++)
{
if($_SESSION['enabled_services'][$i]['id'] == $id_service)
{
return true;
}
}
return false;
}
/**
* Tests if the user has admin rights on the service
*
......
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