Discourse groepen css classes in body

That is the expected behavior of the component. If a group is not visible to the current user it won’t be added to the body class list, as that would be an information leak.