Thanks for this.
I posted the same question in the other thread as well. I thought maybe there are people that will go in here and find this useful.
I seen that category:viewcourselist is available in Moodle 3.7+
I have a Moodle 3.6... and doesn't have this category, unfortunately.
I've done some workarounds, and that is the one with the hiding, what Debbie was saying. Yet, sometimes in Site Administration works to allow role in the permissions, sometimes it doesn't.
But, the concern is, that through the Search functionality, the users from let's say Product A can still see all the courses from any other Product (B,C,D..). Even though if they are not enrolled and they cannot enroll, they can still see the courses in the search results, which is not too good.
I was thinking maybe upgrading to the latest version of Moodle would help now that I seen this category:viewcourselist .
One question please - for Moodle 3.7 or 3.8, when you use this category:viewcourselist for a specific user role, I understood that you can show only specific categories of courses as you assign them. But when you are logged in with a user from Product A and you click on the Search field from the front page and you type in let's say "a" for search, will the search results display only the courses that contain the letter 'a' from the Product A category? Or will it display all the courses from other categories too, those that the user is not enrolled in?
Is this something that someone could test in their Moodle please?
At my end, to upgrade to later versions of Moodle, I need to upgrade my PHP as well on the server (version 7.1.0 is required and you are running 188.8.131.52.18.04.1.1). and not sure of the implications, if I want to revert back to Moodle 3.6 if it will still work and so on...