Question about controlling who can view / enroll in a specific course

Question about controlling who can view / enroll in a specific course

by Patrick Ng -
Number of replies: 1

Hi,

I am new to Moodle and I have a basic question.  Let's say my Moodle site has two different groups of students (e.g. Teenagers, and Adults), which I can manage using two different roles (role_teenager_student, role_adult_student)

And let's say I have 2 courses:

Course A: Learn how to learn!

Course B: How to manage high school life

For course A, I want it to be available to both groups of users.  But for course B, I want it to be available only to teenager students.

To achieve what I want, I thought about using Categories.  However, since a course can only be assigned to one category, my category tree may get complicated soon when I get more courses, more user groups and more user/course permission combinations.

Besides using Category, what else can I use to control who can view / enroll in a specific course?

Average of ratings: -
In reply to Patrick Ng

Re: Question about controlling who can view / enroll in a specific course

by David Saylor -
I think Categories are your best bet without doing custom work. If you're not opposed to custom development, you could potentially modify a self enrol plugin like https://moodle.org/plugins/enrol_autoenrol and add some restrictions based on profile field values or maybe cohort membership. Restricting the viewing of courses is a lot more difficult and the solutions I've seen used custom pages and/or themes to control how course lists are displayed.