Skip to content

Commit

Permalink
MDL-39322 users: report correct auth method for site administrators
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed Apr 26, 2013
1 parent cf5a329 commit 628e9b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/tool/uploaduser/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@

$upt->track('username', html_writer::link(new moodle_url('/user/profile.php', array('id'=>$existinguser->id)), s($existinguser->username)), 'normal', false);
$upt->track('suspended', $stryesnooptions[$existinguser->suspended] , 'normal', false);
$upt->track('auth', $existinguser->auth, 'normal', false);

if (is_siteadmin($user->id)) {
$upt->track('status', $strusernotupdatedadmin, 'error');
Expand All @@ -510,8 +511,6 @@
//load existing profile data
profile_load_data($existinguser);

$upt->track('auth', $existinguser->auth, 'normal', false);

$doupdate = false;
$dologout = false;

Expand Down

0 comments on commit 628e9b2

Please sign in to comment.