Force subscription on a teacher's forum only includes teachers!

This commit is contained in:
moodler
2003-05-12 09:01:23 +00:00
parent 393c9b4ff4
commit 170a9c4612
+5 -1
View File
@@ -663,7 +663,11 @@ function forum_subscribed_users($course, $forum) {
if ($forum->forcesubscribe) {
if ($course->category) {
return get_course_users($course->id);
if ($forum->type == "teacher") {
return get_course_teachers($course->id); // Only teachers can be subscribed to teacher forums
} else {
return get_course_users($course->id); // Otherwise get everyone in the course
}
} else {
return get_site_users();
}