From c21e5abacd5358cf4f7b4f7b660e6eaa63d800bd Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Wed, 6 Nov 2024 08:12:24 +0000 Subject: [PATCH] fix call to deputy check, fixes #4825 Closes #4825 Merge request studip/studip!3609 --- lib/phplib/Seminar_Perm.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/phplib/Seminar_Perm.php b/lib/phplib/Seminar_Perm.php index 1c3a85e95f3..e56835fb1b0 100644 --- a/lib/phplib/Seminar_Perm.php +++ b/lib/phplib/Seminar_Perm.php @@ -189,7 +189,11 @@ class Seminar_Perm return $status; } - if (Config::get()->DEPUTIES_ENABLE && Deputy::isDeputy($user_id, $range_id)) { + if ( + Config::get()->DEPUTIES_ENABLE + && isset($range_id) + && Deputy::isDeputy($user_id, $range_id) + ) { $status = 'dozent'; } else { $st = $db->prepare("SELECT status FROM seminar_user -- GitLab