Skip to content
Snippets Groups Projects
Commit c21e5aba authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

fix call to deputy check, fixes #4825

Closes #4825

Merge request studip/studip!3609
parent 0a3e36b7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment