Permalink
Browse files

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

…f redirect
  • Loading branch information...
1 parent ee78814 commit dca16fd76f3787440ecb06aae779a050422498c1 @satrun77 satrun77 committed Jul 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 dca16fd

Please sign in to comment.