|
@@ 5175-5181 (lines=7) @@
|
| 5172 |
|
} |
| 5173 |
|
|
| 5174 |
|
// Go To Course button (only if admin, if course public or if student already subscribed) |
| 5175 |
|
if ($is_admin || |
| 5176 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5177 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5178 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5179 |
|
) { |
| 5180 |
|
$options[] = 'enter'; |
| 5181 |
|
} |
| 5182 |
|
|
| 5183 |
|
if ($is_admin || |
| 5184 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
|
@@ 5183-5189 (lines=7) @@
|
| 5180 |
|
$options[] = 'enter'; |
| 5181 |
|
} |
| 5182 |
|
|
| 5183 |
|
if ($is_admin || |
| 5184 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5185 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5186 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5187 |
|
) { |
| 5188 |
|
$options[] = 'enter'; |
| 5189 |
|
} |
| 5190 |
|
|
| 5191 |
|
if ($course['visibility'] != COURSE_VISIBILITY_HIDDEN && empty($course['registration_code']) && $course['unsubscribe'] == UNSUBSCRIBE_ALLOWED && api_user_is_login($uid) && (in_array($course['real_id'], |
| 5192 |
|
$user_courses)) |