Course access restriction by other course completion

Course access restriction by other course completion

by József Somogyi -
Number of replies: 1

Hi All,

 

I looking for a settings or plugin what is help me to set "B" (and "C", "D" ...etc) course access (entry) only if the students are finished the "A" course (one of the section from "A" course a test ).

The course completion setting ("Condition: Completion of other courses") is not help me because the students can see the "B" course sections without finishing the "A" course.

I don't know how can I resolve this problem. Is it a enrolment (by a completed course) criteria?

 

Can somebody help me?

 

Regards
J. Somogyi
(Please sory for my english)

Average of ratings: -
In reply to József Somogyi

Re: Course access restriction by other course completion

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

A possible scenario:

Create a local plugin with an observer to the core\event\course_completed event. When the event fires, you can call

enrol_get_plugin('manual')->enrol_user($newcourseinstance, $event->relateduserid, $role);