Skip to content

Commit

Permalink
MDL-12705 disabled guest autoogin in upgrade scripts; merged from MOO…
Browse files Browse the repository at this point in the history
…DLE_19_STABLE
  • Loading branch information
skodak committed Dec 22, 2007
1 parent 92acde1 commit cb0e9fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/index.php
Expand Up @@ -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);

Expand Down
3 changes: 3 additions & 0 deletions admin/upgradesettings.php
Expand Up @@ -8,6 +8,9 @@

$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

Expand Down

0 comments on commit cb0e9fb

Please sign in to comment.