From: moodler Date: Mon, 12 May 2003 09:01:23 +0000 (+0000) Subject: Force subscription on a teacher's forum only includes teachers! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=170a9c46128e54981883ae73ca2a3d6199f418bd;p=moodle.git Force subscription on a teacher's forum only includes teachers! --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 74da1cf6b4..511e0ef411 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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(); }