fixes #1902 ability to set a specific group to notify user registrations

This commit is contained in:
plegall
2023-04-22 17:21:20 +02:00
parent 87926235ca
commit 4b33001c15
10 changed files with 170 additions and 19 deletions
+11
View File
@@ -2592,6 +2592,17 @@ function delete_groups($group_ids)
return false;
}
if (preg_match('/^group:(\d+)$/', conf_get_param('email_admin_on_new_user', 'undefined'), $matches))
{
foreach ($group_ids as $group_id)
{
if ($group_id == $matches[1])
{
conf_update_param('email_admin_on_new_user', 'all', true);
}
}
}
$group_id_string = implode(',', $group_ids);
// destruction of the access linked to the group