Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…f redirect
  • Loading branch information...
commit a12346d5277c20e01edb5f5469b0fbbc79218a08 1 parent 6acbecf
Mohamed Alsharaf authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  repository/repository_ajax.php
2  repository/repository_ajax.php
@@ -53,7 +53,7 @@
53 53
 $usefilereference  = optional_param('usefilereference', false, PARAM_BOOL);
54 54
 
55 55
 list($context, $course, $cm) = get_context_info_array($contextid);
56  
-require_login($course, false, $cm);
  56
+require_login($course, false, $cm, false, true);
57 57
 $PAGE->set_context($context);
58 58
 
59 59
 echo $OUTPUT->header(); // send headers

0 notes on commit a12346d

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