MDL-12705 disabled guest autoogin in upgrade scripts; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2007-12-22 18:17:15 +00:00
parent 92acde19b6
commit cb0e9fbdd2
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -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