2012-06-04 Vanessa Gil <vanessa.gil@artica.es>
* godmode/alerts/alert_list.list.php: Fixed bug: Standard user can not add actions to an alert. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
374a1c30d4
commit
60e2b22c2b
|
@ -1,3 +1,8 @@
|
|||
2012-06-04 Vanessa Gil <vanessa.gil@artica.es>
|
||||
|
||||
* godmode/alerts/alert_list.list.php: Fixed bug:
|
||||
Standard user can not add actions to an alert.
|
||||
|
||||
2012-06-04 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_modules.php
|
||||
|
|
|
@ -472,7 +472,7 @@ foreach ($simple_alerts as $alert) {
|
|||
$data[3] .= html_print_input_hidden ('add_action', 1, true);
|
||||
$data[3] .= html_print_input_hidden ('id_alert_module', $alert['id'], true);
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
$own_groups = users_get_groups($config['id_user'], 'LW', $own_info['is_admin']);
|
||||
$own_groups = users_get_groups($config['id_user'], 'LW', true);
|
||||
$filter_groups = '';
|
||||
$filter_groups = implode(',', array_keys($own_groups));
|
||||
$actions = alerts_get_alert_actions_filter(true, 'id_group IN (' . $filter_groups . ')');
|
||||
|
|
Loading…
Reference in New Issue