Commit 58ed18d6 authored by Yuliya Bozhko's avatar Yuliya Bozhko Committed by Yuliya Bozhko
Browse files

Bug 1733963: Do not auto-add users to the deleted groups


Change-Id: Ic35bbc464ab2c9fa812d66e8e7adc5b71a6da7ba
Signed-off-by: default avatarYuliya Bozhko <>
parent 2249ba25
......@@ -2621,7 +2621,7 @@ function update_user($user, $profile, $remotename=null, $accountprefs=array(), $
function add_user_to_autoadd_groups($eventdata) {
$userid = is_object($eventdata) ? $eventdata->id : $eventdata['id'];
if ($autoaddgroups = get_column('group', 'id', 'usersautoadded', true)) {
if ($autoaddgroups = get_column('group', 'id', 'usersautoadded', true, 'deleted', 0)) {
foreach ($autoaddgroups as $groupid) {
if (!group_user_access($groupid, $userid)) {
group_add_user($groupid, $userid);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment