fix: remove redundant require_login call in view_content.php

Removed an unnecessary require_login call from the view_content.php file. The user is already authenticated earlier in the workflow, ensuring there is no duplicate authentication process. This change streamlines the code and improves efficiency by avoiding redundant checks.
This commit is contained in:
Kumi 2024-07-08 12:52:42 +02:00
parent 85c509e567
commit 51c0f2e058
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -9,8 +9,6 @@ $cm = get_coursemodule_from_id('exp360', $id, 0, false, MUST_EXIST);
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
$exp360 = $DB->get_record('exp360', array('id' => $cm->instance), '*', MUST_EXIST);
require_login($course, true, $cm);
$content_id = $exp360->content_id;
?>