Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…f redirect
  • Loading branch information...
commit dca16fd76f3787440ecb06aae779a050422498c1 1 parent ee78814
@satrun77 satrun77 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.