To not allow to the Theachers enroll students in theirs courses
由Iván Fuentes發表於
Number of replies: 5
Hi,
I have this situation:
When I enter in moodle configurations, in the permissions exists the option "allowunenroll" this is describe as:
If this is set 'Yes', then students are allowed to unenroll themselves from courses whenever they like. Otherwise they are not allowed, and this process will be solely controlled by the teachers and administrators.
How I can separate that only the administrator be the one and only user that is allowed to enroll student in a course, and not the theachers???
Please help.
Iván
I have this situation:
When I enter in moodle configurations, in the permissions exists the option "allowunenroll" this is describe as:
If this is set 'Yes', then students are allowed to unenroll themselves from courses whenever they like. Otherwise they are not allowed, and this process will be solely controlled by the teachers and administrators.
How I can separate that only the administrator be the one and only user that is allowed to enroll student in a course, and not the theachers???
Please help.
Iván
In reply to Iván Fuentes
Re: To not allow to the Theachers enroll students in theirs courses
由Iñaki Arenaza發表於
In reply to Iván Fuentes
Re: To not allow to the Theachers enroll students in theirs courses
由N Hansen發表於
In reply to Iván Fuentes
Re: To not allow to the Theachers enroll students in theirs courses
由Ken Wilson發表於
In reply to Ken Wilson
Re: To not allow to the Theachers enroll students in theirs courses
由Ken Wilson發表於
... or if you just want a simple way to restrict to admins only, add these 5 lines in the file moodle/course/student.php above the "if (! $site = get_site()) {" line:
//Hack to only allow admins to access this page
if (!isadmin()) {
error("You must be an administrator to use this page.");
}
//End hack
Below these lines should be these 3 lines
if (! $site = get_site()) {
redirect("$CFG->wwwroot/$CFG->admin/index.php");
}
You may also want to prevent students enrolling themselves onto courses. Do this by the flat file enrolment variable: admin -> users -> enrolments -> flat file -> uncheck enrol_allowinternal.
Hope this helps!
Ken
In reply to Ken Wilson
Re: To not allow to the Theachers enroll students in theirs courses
由Murray Davis發表於