protected changeActiveProfile ( $params = [] ) : boolean | ||
$params | with theses options : - profiles_id : identifier of profile to set | |
return | boolean |
protected function changeActiveProfile($params = array())
{
$this->initEndpoint();
$profiles_id = intval($params['profiles_id']);
if (isset($_SESSION['glpiprofiles'][$profiles_id])) {
return Session::changeProfile($profiles_id);
}
}