Get isStudentView from session see BT#14460

pull/2573/head
Julio 8 years ago
parent 5d4afd8208
commit cce29556be
  1. 3
      main/lp/lp_controller.php

@ -342,7 +342,8 @@ if (isset($_SESSION['oLP'])) {
// Reinitialises array used by javascript to update items in the TOC.
}
if (isset($_GET['isStudentView']) && $_GET['isStudentView'] == 'true') {
$studentView = api_is_student_view_active();
if ($studentView) {
if (isset($_REQUEST['action']) && !in_array($_REQUEST['action'], ['list', 'view', 'view_category'])) {
if (!empty($_REQUEST['lp_id'])) {
$_REQUEST['action'] = 'view';

Loading…
Cancel
Save