Skip to content

Commit

Permalink
LPs: Allow invisible LP category in course home for students BT#17744
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 19, 2021
1 parent 3792289 commit cf7fe49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main/inc/lib/course_home.lib.php
Expand Up @@ -722,7 +722,12 @@ public static function get_tools_category($course_tool_category, $courseId = 0,
break;
case 'lp_category.gif':
$lpCategory = self::getPublishedLpCategoryFromLink($temp_row['link']);
$add = learnpath::categoryIsVisibleForStudent($lpCategory, $user);
if ($showInvisibleLpsForStudents) {
$add = true;
} else {
$add = learnpath::categoryIsVisibleForStudent($lpCategory, $user);
}

break;
}

Expand Down

0 comments on commit cf7fe49

Please sign in to comment.