diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
|---|---|---|
| committer | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
| commit | 4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch) | |
| tree | 5c07151ae61276d334e88f6309c30d439a85c12e /lib/seminar_open.php | |
| parent | da0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff) | |
| parent | 97a188592c679890a25c37ab78463add76a52ff7 (diff) | |
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'lib/seminar_open.php')
| -rw-r--r-- | lib/seminar_open.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/seminar_open.php b/lib/seminar_open.php index e5c4cf7..2e831bf 100644 --- a/lib/seminar_open.php +++ b/lib/seminar_open.php @@ -216,13 +216,21 @@ if (is_object($GLOBALS['user']) if (!Request::isXhr()) { header('Location: ' . URLHelper::getURL('dispatch.php/terms', ['return_to' => $_SERVER['REQUEST_URI'], 'redirect_token' => Token::create(600)], true)); } else { - throw new Trails_Exception(400); + throw new Trails\Exception(400); } page_close(); 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); } |
