Fix redirect from course base to course session only for students BT#16000

pull/2990/head
Julio Montoya 6 years ago
parent 0ccbd6aa9a
commit b080daa43a
  1. 3
      main/inc/local.inc.php

@ -1350,8 +1350,7 @@ if ((isset($uidReset) && $uidReset) || $cidReset) {
// User has not access to the course
// This will check if the course was added in one of his sessions
// Then it will be redirected to that course-session
if ($is_courseMember == false) {
if ($is_courseMember === false && $is_platformAdmin === false) {
// Search session
$courseSession = SessionManager::searchCourseInSessionsFromUser(
$user_id,

Loading…
Cancel
Save