From d221dc7482b8dd82e1804fc8fe35e35813292ca4 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 26 Jan 2007 21:15:25 +0000 Subject: [PATCH] MDL-8308 placement of load_all_capabilities() in login page; backported from HEAD --- login/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/login/index.php b/login/index.php index 70ec4c9e806..638bf70e9a9 100644 --- a/login/index.php +++ b/login/index.php @@ -141,8 +141,10 @@ update_user_login_times(); set_moodle_cookie($USER->username); set_login_session_preferences(); - - + + /// This is what lets the user do anything on the site :-) + load_all_capabilities(); + //Select password change url if (is_internal_auth($USER->auth) || $CFG->{'auth_'.$USER->auth.'_stdchangepassword'}){ $passwordchangeurl=$CFG->wwwroot.'/login/change_password.php'; @@ -208,8 +210,6 @@ reset_login_count(); - load_all_capabilities(); /// This is what lets the user do anything on the site :-) - redirect($urltogo); exit;