Ensure LMS passes correct group_id when querying content

TNL-23
Will do, as well as remove the unused `user` declaration above (see re-declaration on line `122`).