aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/basicdata.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-09-03 13:11:27 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-09-03 13:11:27 +0000
commitca49522373c5b393d271971765adc1acbee158ec (patch)
treeb8584b4308468f57c251799aeb55683e02971f8d /app/controllers/course/basicdata.php
parent9e8c92f415e5106ee9f726b1c7e251924a7769c9 (diff)
don't check csrf protection twice (and since it will fail on the redirect), fixes #4557
Closes #4557 Merge request studip/studip!3360
Diffstat (limited to 'app/controllers/course/basicdata.php')
-rw-r--r--app/controllers/course/basicdata.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/course/basicdata.php b/app/controllers/course/basicdata.php
index eab5f36..114bcc8 100644
--- a/app/controllers/course/basicdata.php
+++ b/app/controllers/course/basicdata.php
@@ -612,7 +612,8 @@ class Course_BasicdataController extends AuthenticatedController
public function add_member_action($course_id, $status = 'dozent')
{
- CSRFProtection::verifyUnsafeRequest();
+ // We don't need to check the csrf protection at this point since it
+ // is already checked by the multiperson search endpoint
// load MultiPersonSearch object
$mp = MultiPersonSearch::load("add_member_{$status}{$course_id}");