diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2024-04-16 07:36:16 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-04-16 07:36:16 +0000 |
| commit | f833ea1b3a142c38bee761240b324cd33b20b28b (patch) | |
| tree | aa34e29aa476c631c31068f8d1a76f1247588735 /app/controllers/course | |
| parent | a5210d73f5e03cfa3b6fc4a7e869400a41c74a45 (diff) | |
Biest 4019
Merge request studip/studip!2868
Diffstat (limited to 'app/controllers/course')
| -rw-r--r-- | app/controllers/course/studygroup.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/course/studygroup.php b/app/controllers/course/studygroup.php index b75d91e..500a0b6 100644 --- a/app/controllers/course/studygroup.php +++ b/app/controllers/course/studygroup.php @@ -596,6 +596,11 @@ class Course_StudygroupController extends AuthenticatedController global $perm; $id = Context::getId(); + + if (!$id) { + throw new CheckObjectException(_('Sie haben kein Objekt gewählt.')); + } + $user = Request::username('user'); if ($from_status === 'moderator') { |
