Fixed minor bug
This commit is contained in:
parent
8e7b769977
commit
27963c4370
|
@ -1267,7 +1267,7 @@ if ($config['ehorus_enabled'] && !empty($config['ehorus_custom_field'])
|
||||||
) || is_user_admin($config['id_user']))
|
) || is_user_admin($config['id_user']))
|
||||||
) {
|
) {
|
||||||
$user_info = users_get_user_by_id($config['id_user']);
|
$user_info = users_get_user_by_id($config['id_user']);
|
||||||
if ($config['ehorus_user_level_conf'] && !$user_info['ehorus_user_level_enabled'] && !is_user_admin($config['id_user'])) {
|
if ($config['ehorus_user_level_conf'] && !$user_info['ehorus_user_level_enabled']) {
|
||||||
// If ehorus user configuration is enabled, and userr acces level is disabled do not show eHorus tab.
|
// If ehorus user configuration is enabled, and userr acces level is disabled do not show eHorus tab.
|
||||||
} else {
|
} else {
|
||||||
$ehorus_agent_id = agents_get_agent_custom_field($id_agente, $config['ehorus_custom_field']);
|
$ehorus_agent_id = agents_get_agent_custom_field($id_agente, $config['ehorus_custom_field']);
|
||||||
|
|
Loading…
Reference in New Issue