diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-04-08 07:25:51 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-04-08 11:45:18 +0200 |
| commit | 1d3407a8d91b2bfaaded1cbc3449bca76e7b98d8 (patch) | |
| tree | 73989f373999a3be523c35c9cb558d775c09f3e7 /lib/seminar_open.php | |
| parent | ce2fe7431606ef1469ec7daefbe639d456a38c63 (diff) | |
Resolve "Sichtbarkeitseinstellung: irreführender Hinweis"
Closes #3859
Merge request studip/studip!2770
Diffstat (limited to 'lib/seminar_open.php')
| -rw-r--r-- | lib/seminar_open.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/seminar_open.php b/lib/seminar_open.php index c3e15c3..614a9b1 100644 --- a/lib/seminar_open.php +++ b/lib/seminar_open.php @@ -215,7 +215,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); } |
