diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-06 08:12:24 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2024-11-06 08:12:24 +0000 |
| commit | c21e5abacd5358cf4f7b4f7b660e6eaa63d800bd (patch) | |
| tree | cccbb90032f3e108bec646db3a5c4ca6e6411703 | |
| parent | 0a3e36b73a99ec817530dfa2ae5f3acdc8c57722 (diff) | |
fix call to deputy check, fixes #4825
Closes #4825
Merge request studip/studip!3609
| -rw-r--r-- | lib/phplib/Seminar_Perm.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/phplib/Seminar_Perm.php b/lib/phplib/Seminar_Perm.php index 1c3a85e..e56835f 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 |
