mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-12705 disabled guest autoogin in upgrade scripts; merged from MOODLE_19_STABLE
This commit is contained in:
parent
92acde19b6
commit
cb0e9fbdd2
@ -521,8 +521,8 @@
|
||||
create_admin_user();
|
||||
}
|
||||
|
||||
/// Check for valid admin user
|
||||
require_login();
|
||||
/// Check for valid admin user - no guest autologin
|
||||
require_login(0, false);
|
||||
|
||||
$context = get_context_instance(CONTEXT_SYSTEM, SITEID);
|
||||
|
||||
|
@ -8,6 +8,9 @@ require_once($CFG->libdir.'/adminlib.php');
|
||||
|
||||
$return = optional_param('return', '', PARAM_ALPHA);
|
||||
|
||||
/// no guest autologin
|
||||
require_login(0, false);
|
||||
|
||||
$adminroot =& admin_get_root(); // need all settings
|
||||
admin_externalpage_setup('upgradesettings'); // now hidden page
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user