|
@@ 1317-1322 (lines=6) @@
|
| 1314 |
|
$course_id = $course_info['real_id']; |
| 1315 |
|
$work_id = intval($work_id); |
| 1316 |
|
|
| 1317 |
|
if (!empty($group_id)) { |
| 1318 |
|
// set to select only messages posted by the user's group |
| 1319 |
|
$extra_conditions = " work.post_group_id = '".intval($group_id)."' "; |
| 1320 |
|
} else { |
| 1321 |
|
$extra_conditions = " work.post_group_id = '0' "; |
| 1322 |
|
} |
| 1323 |
|
|
| 1324 |
|
if ($is_allowed_to_edit) { |
| 1325 |
|
$extra_conditions .= ' AND work.active IN (0, 1) '; |
|
@@ 1948-1953 (lines=6) @@
|
| 1945 |
|
); |
| 1946 |
|
|
| 1947 |
|
if (!empty($work_data)) { |
| 1948 |
|
if (!empty($group_id)) { |
| 1949 |
|
$extra_conditions = " work.post_group_id = '".intval($group_id)."' "; |
| 1950 |
|
// set to select only messages posted by the user's group |
| 1951 |
|
} else { |
| 1952 |
|
$extra_conditions = " work.post_group_id = '0' "; |
| 1953 |
|
} |
| 1954 |
|
|
| 1955 |
|
if ($is_allowed_to_edit || $isDrhOfCourse) { |
| 1956 |
|
$extra_conditions .= ' AND work.active IN (0, 1) '; |