diff --git a/mod/data/rate.php b/mod/data/rate.php index 3dbdc165725..306e6431a09 100755 --- a/mod/data/rate.php +++ b/mod/data/rate.php @@ -1,11 +1,7 @@ -id); + if (isguest()) { + error("Guests are not allowed to rate posts.", $_SERVER["HTTP_REFERER"]); + } + $CFG->debug = 0; /// Temporarily $returntoview = false;