Permalink
Browse files

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

…f redirect
  • Loading branch information...
1 parent 6acbecf commit a12346d5277c20e01edb5f5469b0fbbc79218a08 @satrun77 satrun77 committed Jul 30, 2013
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 a12346d

Please sign in to comment.