In my case, if the user is not enrolled to any course, all the courses will be shown on the home page after he has logged in.
Once the user is enrolled to a course, he can then only see his enrolled course on the home page.
What is the configuration to hide all the courses if the user does not participate in any course?