Fixed all alert actions are shown after alert action creation/edition even if user has access rights only for specific groups.

This commit is contained in:
Junichi Satoh 2021-07-13 09:53:23 +09:00
parent 925c9fce4f
commit e7079dd4c4
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ $table->align[3] = 'left';
$table->align[4] = 'left';
$filter = [];
if (!is_user_admin($config['id_user']) && $group === 0) {
if (!is_user_admin($config['id_user'])) {
$filter['talert_actions.id_group'] = array_keys(
users_get_groups(false, 'LM')
);