|
|
@ -729,7 +729,7 @@ function return_breadcrumb($interbreadcrumb, $language_file, $nameTools) |
|
|
|
/* Part 4 . Show the teacher view/student view button at the right of the breadcrumb */ |
|
|
|
/* Part 4 . Show the teacher view/student view button at the right of the breadcrumb */ |
|
|
|
$view_as_student_link = null; |
|
|
|
$view_as_student_link = null; |
|
|
|
if ($user_id && isset($course_id)) { |
|
|
|
if ($user_id && isset($course_id)) { |
|
|
|
if ((api_is_course_admin() || api_is_platform_admin()) && api_get_setting('student_view_enabled') == 'true') { |
|
|
|
if ((api_is_course_admin() || api_is_platform_admin()) && api_get_setting('student_view_enabled') == 'true' && api_get_course_info()) { |
|
|
|
$view_as_student_link = api_display_tool_view_option(); |
|
|
|
$view_as_student_link = api_display_tool_view_option(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|