diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 214bc50594..cf05d70dd3 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -2247,7 +2247,7 @@ class learnpath { //$parent = $this->items[$this->current]->get_parent(); //if(empty($parent)){$parent = $this->ordered_items[$this->items[$this->current]->get_previous_index()];} $html .= '
'."\n" ; - if($_SESSION["is_courseAdmin"]==1){ + if(api_is_allowed_to_edit()){ $html.="lp_id."' style='font-size: 11px' target='_parent'>".mb_convert_encoding(get_lang("Build"),$this->encoding)."|lp_id."' target='_parent'>".mb_convert_encoding(get_lang("BasicOverview"),$this->encoding)."|".mb_convert_encoding(get_lang("Display"),$this->encoding)."

"; } // " onchange=\"javascript:document.getElementById('toc_$parent').focus();\">\n";