Hidden Grades can still be seen!

Re: Hidden Grades can still be seen!

by Nicolas Dunand -
Number of replies: 0
Picture of Core developers Picture of Plugin developers
Hello,

I had the same complaint some time ago from some of our teachers (i.e. it seems not be possible to efficiently hide grades from the students). I agree that this course setting is ... er ... unclear. Actually, in our Moodle in French it says something more like "Hide Gradebook from students", which is more accurate.

However, the "grade hiding" article in Moodle Docs is almost clear :
http://docs.moodle.org/en/Grade_hiding

So,

To hide grades, teachers should mark them (individually or on a per activity basis) as hidden in the Gradebook, which would be ok ...

But,

Whatever the grade visibility setting is, the grades are still _always_ visible to the students under the "Assignments" page (as a student, go into any assignment, then go up to "assignments" using the navigation breadcrumbs).

Finally, I hacked the mod/assignment/index.php file, modifying
if (isset($grading_info->items[0])) {
into
if (isset($grading_info->items[0]) && !$grading_info->items[0]->grades[$USER->id]->hidden) {

This way, grades here are only visible when not hidden.

I have to ensure this actually works everywhere before telling my teachers everything is ok.

I should as well modifiy the text string "Hide grades" into "Hide gradebook from students".