Commit dc842157 authored by Krista Koivisto's avatar Krista Koivisto Committed by Eloy Lafuente
Browse files

MDL-52774 ajax: Require authentication when getting nav branch

When getting the navigation branch data through AJAX, require
login if forcelogin is set.
parent 0f989a4c
......@@ -32,6 +32,10 @@ require_once(dirname(__FILE__) . '/../../config.php');
/** Include course lib for its functions */
if (!empty($CFG->forcelogin)) {
try {
// Start buffer capture so that we can `remove` any errors
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment