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:
parent
85c509e567
commit
51c0f2e058
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||||
$exp360 = $DB->get_record('exp360', array('id' => $cm->instance), '*', MUST_EXIST);
|
$exp360 = $DB->get_record('exp360', array('id' => $cm->instance), '*', MUST_EXIST);
|
||||||
|
|
||||||
require_login($course, true, $cm);
|
|
||||||
|
|
||||||
$content_id = $exp360->content_id;
|
$content_id = $exp360->content_id;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue