|
@@ 1304-1309 (lines=6) @@
|
| 1301 |
|
$groupIid = $groupInfo['iid']; |
| 1302 |
|
} |
| 1303 |
|
|
| 1304 |
|
if (!empty($group_id)) { |
| 1305 |
|
// set to select only messages posted by the user's group |
| 1306 |
|
$extra_conditions = " work.post_group_id = '".intval($groupIid)."' "; |
| 1307 |
|
} else { |
| 1308 |
|
$extra_conditions = " (work.post_group_id = '0' or work.post_group_id IS NULL) "; |
| 1309 |
|
} |
| 1310 |
|
|
| 1311 |
|
if ($is_allowed_to_edit) { |
| 1312 |
|
$extra_conditions .= ' AND work.active IN (0, 1) '; |
|
@@ 1966-1971 (lines=6) @@
|
| 1963 |
|
} |
| 1964 |
|
|
| 1965 |
|
if (!empty($work_data)) { |
| 1966 |
|
if (!empty($group_id)) { |
| 1967 |
|
$extra_conditions = " work.post_group_id = '".intval($groupIid)."' "; |
| 1968 |
|
// set to select only messages posted by the user's group |
| 1969 |
|
} else { |
| 1970 |
|
$extra_conditions = " (work.post_group_id = '0' OR work.post_group_id is NULL) "; |
| 1971 |
|
} |
| 1972 |
|
|
| 1973 |
|
if ($is_allowed_to_edit || $isDrhOfCourse) { |
| 1974 |
|
$extra_conditions .= ' AND work.active IN (0, 1) '; |