UserList filterByGroup false #6476
Labels
Status:Available
Reviewed issue, it’s real, we’d review a pull request.
Type:Bug
Existing functionality not performing as expected.
The documentation says UserList filterByGroup false will exclude the members who belong to the group,
http://documentation.concrete5.org/developers/users-groups/searching-and-sorting-users-userlist-object
$list = new \Concrete\Core\User\UserList();
...
$group = \Group::getByName('Administrators');
$list->filterByGroup($group, false); // Return all non-admins
but actually exlude members who belong to the group and no other group.
Sample Case:
User_A belongs to Group_X
User_B belongs to Group_X and Group_Y
User_C belongs to Group_Y
$list->filterByGroup("Group_X", false) will exlude only User_A. (= User_B is included.)
The text was updated successfully, but these errors were encountered: