From 290891415ddcd199e004e493a6b114f46562eb3b Mon Sep 17 00:00:00 2001 From: willcast Date: Tue, 21 Oct 2003 18:32:36 +0000 Subject: [PATCH] - Preventing guest for posting comments on entries --- mod/glossary/comment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5