Hide create course for boss or session admin see BT#11676

pull/2487/head
jmontoyaa 9 years ago
parent 88b3f2914c
commit 3d50662712
  1. 6
      main/inc/lib/userportal.lib.php

@ -203,7 +203,7 @@ class IndexManager
$show_create_link = false;
}
if ($show_menu && ($show_create_link || $show_course_link )) {
if ($show_menu && ($show_create_link || $show_course_link)) {
$show_menu = true;
} else {
$show_menu = false;
@ -1026,6 +1026,10 @@ class IndexManager
}
}
if (api_is_student_boss() || api_is_session_admin()) {
$show_create_link = false;
}
// My account section
$my_account_content = '<ul class="nav nav-pills nav-stacked">';

Loading…
Cancel
Save