Nikhil,
If you aren't looking for showing and hiding courses at all. Just change the code to change the visibility of the categories instead of the courses.
Nikhil,
If you aren't looking for showing and hiding courses at all. Just change the code to change the visibility of the categories instead of the courses.
Hi James,
I m very new to Moodle and I have been given task to hide categories to students for which they are not enrolled.
Means 'When a user is assigned to one or several cohort, he can see only course/categories of his cohorts'
Is this possible???
Please let me know.