Skip to content

Commit

Permalink
LPs: Fix shortcut visibility in a session BT#17744
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 18, 2021
1 parent 0294ab9 commit 56037ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/lp/learnpathList.class.php
Expand Up @@ -104,6 +104,8 @@ public function __construct(
$showBlockedPrerequisite = api_get_configuration_value('show_prerequisite_as_blocked');
$names = [];
$isAllowToEdit = api_is_allowed_to_edit();
$toolSessionCondition = api_get_session_condition($session_id);

/** @var CLp $row */
foreach ($learningPaths as $row) {
$name = Database::escape_string($row->getName());
Expand All @@ -119,6 +121,7 @@ public function __construct(
link LIKE '$link%' OR
link LIKE '$oldLink%'
)
$toolSessionCondition
";
$res2 = Database::query($sql2);
$pub = 'i';
Expand Down

0 comments on commit 56037ae

Please sign in to comment.