From: willcast Date: Tue, 21 Oct 2003 18:32:36 +0000 (+0000) Subject: - Preventing guest for posting comments on entries X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=290891415ddcd199e004e493a6b114f46562eb3b;p=moodle.git - Preventing guest for posting comments on entries --- diff --git a/mod/glossary/comment.php b/mod/glossary/comment.php index 3051551da3..8bdda5c265 100644 --- a/mod/glossary/comment.php +++ b/mod/glossary/comment.php @@ -41,7 +41,9 @@ if (!$cm->visible and !isteacher($course->id)) { notice(get_string("activityiscurrentlyhidden")); } - + if (isguest()) { + error("Guests are not allowed to post comments", $_SERVER["HTTP_REFERER"]); + } add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id", "$glossary->id"); /// Printing the page header