From 9aef3af998d6e0cf3276db84201179c6cfe96528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Sch=C3=BCttl=C3=B6ffel?= <schuettloeffel@zqs.uni-hannover.de> Date: Mon, 8 Apr 2024 07:25:51 +0000 Subject: [PATCH] =?UTF-8?q?Resolve=20"Sichtbarkeitseinstellung:=20irref?= =?UTF-8?q?=C3=BChrender=20Hinweis"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3859 Merge request studip/studip!2770 --- lib/seminar_open.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/seminar_open.php b/lib/seminar_open.php index e5c4cf7d600..1c0056b3577 100644 --- a/lib/seminar_open.php +++ b/lib/seminar_open.php @@ -222,7 +222,15 @@ if (is_object($GLOBALS['user']) die; } -if (Config::get()->USER_VISIBILITY_CHECK && is_object($GLOBALS['user']) && $GLOBALS['user']->id !== 'nobody') { +if ( + Config::get()->USER_VISIBILITY_CHECK + && is_object($GLOBALS['user']) + && $GLOBALS['user']->id !== 'nobody' + && !( + Config::get()->DOZENT_ALWAYS_VISIBLE + && $perm->get_perm() === 'dozent' + ) +) { require_once('lib/user_visible.inc.php'); first_decision($GLOBALS['user']->id); } -- GitLab