|
@@ 4833-4839 (lines=7) @@
|
| 4830 |
|
} |
| 4831 |
|
|
| 4832 |
|
// Go To Course button (only if admin, if course public or if student already subscribed) |
| 4833 |
|
if ($is_admin || |
| 4834 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 4835 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 4836 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 4837 |
|
) { |
| 4838 |
|
$options[] = 'enter'; |
| 4839 |
|
} |
| 4840 |
|
|
| 4841 |
|
if ($is_admin || |
| 4842 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
|
@@ 4841-4847 (lines=7) @@
|
| 4838 |
|
$options[] = 'enter'; |
| 4839 |
|
} |
| 4840 |
|
|
| 4841 |
|
if ($is_admin || |
| 4842 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 4843 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 4844 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 4845 |
|
) { |
| 4846 |
|
$options[] = 'enter'; |
| 4847 |
|
} |
| 4848 |
|
|
| 4849 |
|
if ($course['visibility'] != COURSE_VISIBILITY_HIDDEN && empty($course['registration_code']) && $course['unsubscribe'] == UNSUBSCRIBE_ALLOWED && api_user_is_login($uid) && (in_array($course['real_id'], |
| 4850 |
|
$user_courses)) |