Skip to content
Browse files

MDL-27684 repository: make require_login() throws exception instead o…

…f redirect
  • Loading branch information...
1 parent 6cef890 commit c1536ff1efe2f80ec69703b7c6c52632baa85389 @satrun77 satrun77 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/repository_ajax.php
View
2 repository/repository_ajax.php
@@ -53,7 +53,7 @@
$usefilereference = optional_param('usefilereference', false, PARAM_BOOL);
list($context, $course, $cm) = get_context_info_array($contextid);
-require_login($course, false, $cm);
+require_login($course, false, $cm, false, true);
$PAGE->set_context($context);
echo $OUTPUT->header(); // send headers

0 comments on commit c1536ff

Please sign in to comment.
Something went wrong with that request. Please try again.