Skip to content
Snippets Groups Projects
Commit 9aef3af9 authored by Philipp Schüttlöffel's avatar Philipp Schüttlöffel Committed by Jan-Hendrik Willms
Browse files

Resolve "Sichtbarkeitseinstellung: irreführender Hinweis"

Closes #3859

Merge request studip/studip!2770
parent 696da995
No related branches found
No related tags found
No related merge requests found
...@@ -222,7 +222,15 @@ if (is_object($GLOBALS['user']) ...@@ -222,7 +222,15 @@ if (is_object($GLOBALS['user'])
die; 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'); require_once('lib/user_visible.inc.php');
first_decision($GLOBALS['user']->id); first_decision($GLOBALS['user']->id);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment