Merge branch 'ent-6512-error-en-acls-de-alertas' into 'develop'
Ent 6512 error en acls de alertas See merge request artica/pandorafms!3538
This commit is contained in:
commit
5278a80d4c
|
@ -131,7 +131,7 @@ if (check_acl($config['id_user'], 0, 'LM')) {
|
||||||
|
|
||||||
$table->data[2][0] = __('Template');
|
$table->data[2][0] = __('Template');
|
||||||
$own_info = get_user_info($config['id_user']);
|
$own_info = get_user_info($config['id_user']);
|
||||||
if ($own_info['is_admin'] || check_acl($config['id_user'], 0, 'PM')) {
|
if ($own_info['is_admin']) {
|
||||||
$templates = alerts_get_alert_templates(false, ['id', 'name']);
|
$templates = alerts_get_alert_templates(false, ['id', 'name']);
|
||||||
} else {
|
} else {
|
||||||
$usr_groups = users_get_groups($config['id_user'], 'LW', true);
|
$usr_groups = users_get_groups($config['id_user'], 'LW', true);
|
||||||
|
|
|
@ -335,6 +335,11 @@ function agents_get_alerts_simple($id_agent=false, $filter='', $options=false, $
|
||||||
|
|
||||||
// Filter by agents id.
|
// Filter by agents id.
|
||||||
$id_agents_list = implode(',', $id_agent);
|
$id_agents_list = implode(',', $id_agent);
|
||||||
|
|
||||||
|
if ($id_agents_list === '') {
|
||||||
|
$id_agents_list = '0';
|
||||||
|
}
|
||||||
|
|
||||||
$subQuery .= ' AND id_agente in ('.$id_agents_list.')';
|
$subQuery .= ' AND id_agente in ('.$id_agents_list.')';
|
||||||
} else if ($id_agent === false || empty($id_agent)) {
|
} else if ($id_agent === false || empty($id_agent)) {
|
||||||
if ($allModules) {
|
if ($allModules) {
|
||||||
|
|
Loading…
Reference in New Issue