MDL-8308 placement of load_all_capabilities() in login page; backported from HEAD

This commit is contained in:
skodak
2007-01-26 21:15:25 +00:00
parent 14da408e08
commit d221dc7482
+4 -4
View File
@@ -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;