diff --git a/app/Controller/Component/RoleComponent.php b/app/Controller/Component/RoleComponent.php index 7695e97b0..66ce281d6 100644 --- a/app/Controller/Component/RoleComponent.php +++ b/app/Controller/Component/RoleComponent.php @@ -278,6 +278,7 @@ protected function cachedGroupGet($coPersonId, // The join bypasses ChangelogBehavior, so manually exclude those records. $args['conditions'][] = 'CoGroupMember.deleted IS NOT TRUE'; + $args['conditions'][] = 'CoGroupMember.co_group_member_id IS NULL'; if($condValue != null) { $args['conditions'][$condKey] = $condValue;