|
|
|
@ -928,7 +928,7 @@ if ((isset($uidReset) && $uidReset) || (isset($cidReset) && $cidReset)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Checking if the user filled the course legal agreement |
|
|
|
//Checking if the user filled the course legal agreement |
|
|
|
if ($_course['activate_legal'] == 1 && !api_is_platform_admin()) { |
|
|
|
if ($_course['activate_legal'] == 1 && !api_is_platform_admin() && !api_is_anonymous) { |
|
|
|
$user_is_subscribed = CourseManager::is_user_accepted_legal($user_id, $_course['id'], $session_id) || $user_pass_open_course; |
|
|
|
$user_is_subscribed = CourseManager::is_user_accepted_legal($user_id, $_course['id'], $session_id) || $user_pass_open_course; |
|
|
|
if (!$user_is_subscribed) { |
|
|
|
if (!$user_is_subscribed) { |
|
|
|
$url = api_get_path(WEB_CODE_PATH).'course_info/legal.php?course_code='.$_course['code'].'&session_id='.$session_id; |
|
|
|
$url = api_get_path(WEB_CODE_PATH).'course_info/legal.php?course_code='.$_course['code'].'&session_id='.$session_id; |
|
|
|
|