Permalink
Browse files

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.
  • Loading branch information...
1 parent ac90c4a commit 8097f8d7c75846750a0ff4a6a07db1f1ab28e5cf moodler committed Jun 7, 2004
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/forum/lib.php
View
@@ -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);

0 comments on commit 8097f8d

Please sign in to comment.