Skip to content

Commit

Permalink
MDL-27684 repository: make require_login() throws exception instead o…
Browse files Browse the repository at this point in the history
…f redirect
  • Loading branch information
satrun77 committed Sep 13, 2013
1 parent ee78814 commit dca16fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/repository_ajax.php
Expand Up @@ -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
Expand Down

0 comments on commit dca16fd

Please sign in to comment.