From 5be91082a1e17442c0729290165d87d91699da86 Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Tue, 5 Mar 2024 12:19:20 +0000 Subject: [PATCH] :ambulance: Fix(Tasks) - not taking sole users Not taking users selection, only groups - fixed --- plugins/configuration/tasks/class_tasks.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/configuration/tasks/class_tasks.inc b/plugins/configuration/tasks/class_tasks.inc index 3c8958543..1c32ae601 100644 --- a/plugins/configuration/tasks/class_tasks.inc +++ b/plugins/configuration/tasks/class_tasks.inc @@ -257,12 +257,12 @@ class tasks extends simplePlugin $listMemberDN[] = $memberDN; } // case of member not within a group or dyngroup - } else { - $listMemberDN[] = $group; //Here group is indeed a sole user } - // Make sure no duplicate can happens, case of same member in an existing group. - $listMemberDN = array_unique($listMemberDN); + } else { + $listMemberDN[] = $group; //Here group is indeed a sole user } + // Make sure no duplicate can happens, case of same member in an existing group. + $listMemberDN = array_unique($listMemberDN); } // Iterate on the DN list to remove any members representing a group (members of that potential groups were extracted). -- GitLab