Commit 8859fb86 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

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

parents 2ffc193c 58ed18d6
......@@ -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);
Markdown is supported
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