From fce9c67b2083f0ce8cede5635e539818469a23d3 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 25 Apr 2004 01:43:20 +0000 Subject: [PATCH] Fix for bug 1268 --- mod/forum/discuss.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index 0e26b98707..fe01c40aa5 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -55,6 +55,12 @@ } } + if ($forum->type == "teacher") { + if (!isteacher($course->id)) { + error("You must be a $course->teacher to view this forum"); + } + } + $logparameters = "d=$discussion->id"; if ($parent) { $logparameters .= "&parent=$parent"; -- 2.39.5