Additional checks were required to ensure users can only fetch the list of course badges for courses they are intended to have access to.