Skip to content
Permalink
Browse files

Merge branch 'MDL-31510_group_activities_21' of git://github.com/andy…

…jdavis/moodle into MOODLE_21_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Apr 30, 2012
2 parents 8374754 + 52de453 commit 60aaa96f61b782ba5ccf7cccd85fa31e18e06002
Showing with 13 additions and 0 deletions.
  1. +13 −0 grade/report/user/lib.php
@@ -344,6 +344,19 @@ private function fill_table_recursive(&$element) {
($this->showhiddenitems == GRADE_REPORT_USER_HIDE_UNTIL && !$grade_grade->is_hiddenuntil()))) {
// return false;
} else {
// The grade object can be marked visible but still be hidden
// if "enablegroupmembersonly" is on and its an activity assigned to a grouping the user is not in
if (!empty($grade_object->itemmodule) && !empty($grade_object->iteminstance)) {
$instances = $this->gtree->modinfo->get_instances();
if (!empty($instances[$grade_object->itemmodule][$grade_object->iteminstance])) {
$cm = $instances[$grade_object->itemmodule][$grade_object->iteminstance];
if (!$cm->uservisible) {
return false;
}
}
}
/// Excluded Item
if ($grade_grade->is_excluded()) {
$fullname .= ' ['.get_string('excluded', 'grades').']';

0 comments on commit 60aaa96

Please sign in to comment.
You can’t perform that action at this time.