mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-14461:
The user must be (effectively) be logged in to use this function. Adding the logged in check means they will be asked if they are not (like everywhere else). Merged from STABLE19
This commit is contained in:
parent
09ee7b0d9e
commit
e47878d870
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
|
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
|
||||||
|
|
||||||
|
require_login();
|
||||||
|
|
||||||
if (!is_enabled_auth('mnet')) {
|
if (!is_enabled_auth('mnet')) {
|
||||||
print_error('mnet is disabled');
|
print_error('mnet is disabled');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user