Skip to content
Browse files

- Preventing guest for posting comments on entries

  • Loading branch information...
1 parent 20853ea commit 290891415ddcd199e004e493a6b114f46562eb3b willcast committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/glossary/comment.php
View
4 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

0 comments on commit 2908914

Please sign in to comment.
Something went wrong with that request. Please try again.