|
@@ 1249-1258 (lines=10) @@
|
| 1246 |
|
$extra_conditions = " work.post_group_id = '0' "; |
| 1247 |
|
} |
| 1248 |
|
|
| 1249 |
|
if ($is_allowed_to_edit) { |
| 1250 |
|
$extra_conditions .= ' AND work.active IN (0, 1) '; |
| 1251 |
|
} else { |
| 1252 |
|
$extra_conditions .= ' AND work.active IN (0, 1) AND accepted = 1'; |
| 1253 |
|
if (isset($course_info['show_score']) && $course_info['show_score'] == 1) { |
| 1254 |
|
$extra_conditions .= " AND work.user_id = ".api_get_user_id()." "; |
| 1255 |
|
} else { |
| 1256 |
|
$extra_conditions .= ''; |
| 1257 |
|
} |
| 1258 |
|
} |
| 1259 |
|
|
| 1260 |
|
$extra_conditions .= " AND parent_id = ".$work_id." "; |
| 1261 |
|
|
|
@@ 1875-1885 (lines=11) @@
|
| 1872 |
|
$extra_conditions = " work.post_group_id = '0' "; |
| 1873 |
|
} |
| 1874 |
|
|
| 1875 |
|
if ($is_allowed_to_edit || $isDrhOfCourse) { |
| 1876 |
|
$extra_conditions .= ' AND work.active IN (0, 1) '; |
| 1877 |
|
} else { |
| 1878 |
|
if (isset($course_info['show_score']) && |
| 1879 |
|
$course_info['show_score'] == 1 |
| 1880 |
|
) { |
| 1881 |
|
$extra_conditions .= " AND (u.user_id = ".api_get_user_id()." AND work.active IN (0, 1)) "; |
| 1882 |
|
} else { |
| 1883 |
|
$extra_conditions .= ' AND work.active IN (0, 1) '; |
| 1884 |
|
} |
| 1885 |
|
} |
| 1886 |
|
|
| 1887 |
|
$extra_conditions .= " AND parent_id = ".$work_id." "; |
| 1888 |
|
|