Skip to content
Snippets Groups Projects
Commit ca495223 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

don't check csrf protection twice (and since it will fail on the redirect), fixes #4557

Closes #4557

Merge request studip/studip!3360
parent 9e8c92f4
No related branches found
No related tags found
No related merge requests found
......@@ -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}");
......
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