Fixed a bug reported here: http://moodle.org/mod/forum/discuss.php?d=8737
Students now will not see a forum rating menu if "teachers only" has been selected.
This commit is contained in:
+4
-2
@@ -1274,8 +1274,10 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
|
||||
|
||||
if (($isteacher or $ratings->assesspublic) and !$mypost) {
|
||||
forum_print_ratings_mean($post->id, $ratings->scale, $isteacher);
|
||||
forum_print_rating_menu($post->id, $USER->id, $ratings->scale);
|
||||
$ratingsmenuused = true;
|
||||
if (!empty($ratings->allow)) {
|
||||
forum_print_rating_menu($post->id, $USER->id, $ratings->scale);
|
||||
$ratingsmenuused = true;
|
||||
}
|
||||
|
||||
} else if ($mypost) {
|
||||
forum_print_ratings_mean($post->id, $ratings->scale, true);
|
||||
|
||||
Reference in New Issue
Block a user