diff --git a/lib/extern/ExternPagePersBrowse.php b/lib/extern/ExternPagePersBrowse.php index 270e99124cd53c1b9093749d4a0880cb64224f7d..d55717376cdd4e3eb5033d7ee57aeaec8fe42f70 100644 --- a/lib/extern/ExternPagePersBrowse.php +++ b/lib/extern/ExternPagePersBrowse.php @@ -32,7 +32,7 @@ class ExternPagePersBrowse extends ExternPage /** * @see ExternPage::getDataFields() - + * @param array $classes * @return array */ @@ -343,6 +343,7 @@ class ExternPagePersBrowse extends ExternPage LEFT JOIN auth_user_md5 aum ON su.user_id = aum.user_id WHERE ui.Institut_id = ? AND su.status = 'dozent' + AND s.visible = 1 AND ui.externdefault = 1 AND " . get_ext_vis_query() . " AND ui.inst_perms = 'dozent' diff --git a/lib/extern/ExternPagePersonDetails.php b/lib/extern/ExternPagePersonDetails.php index 49c754c16a178796710ec23c417680b00beb930a..37d7436b785196b5fcb2d9a0f84496717bacaf5b 100644 --- a/lib/extern/ExternPagePersonDetails.php +++ b/lib/extern/ExternPagePersonDetails.php @@ -146,7 +146,8 @@ class ExternPagePersonDetails extends ExternPage LEFT JOIN `seminar_user` USING(`seminar_id`) LEFT JOIN `sem_types` ON `sem_types`.`id` = `seminare`.`status` - WHERE `semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`) + WHERE `seminare`.`visible` = 1 + AND `semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`) AND `seminar_user`.`user_id` = :user_id AND `seminar_user`.`status` = 'dozent' AND `sem_types`.`class` IN (:semclasses)"; diff --git a/lib/extern/ExternPageTimetable.php b/lib/extern/ExternPageTimetable.php index 45c40c85a958ce51c7018a7e23fbfe162fcaa9e3..b301a47cdbd0066ae0f926f46c0e5a576a008b59 100644 --- a/lib/extern/ExternPageTimetable.php +++ b/lib/extern/ExternPageTimetable.php @@ -119,7 +119,11 @@ class ExternPageTimetable extends ExternPage LEFT JOIN `seminar_inst` ON `seminare`.`Seminar_id` = `seminar_inst`.`Seminar_id`"; $query .= " - WHERE (`termine`.`date` >= :start AND `termine`.`date` <= :end) " + WHERE ( + `seminare`.`visible` = 1 + AND termine`.`date` >= :start + AND `termine`.`date` <= :end + )" . $this->getEventTypeSQL($params) . $this->getScopesSQL($params, $this->studyareas, (bool) $this->scope_kids) . $this->getInstitutesSQL($params)