Ensure LMS passes correct group_id when querying content

TNL-23
It should be adequately tested by the view tests.