From 3f3a1b360f985f9e61176a88ef5a826be0b85248 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 8 Oct 2004 13:15:13 +0000 Subject: [PATCH] Main admin can never change their own authentication method from "manual" --- user/edit.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/user/edit.html b/user/edit.html index 3e7ab0eb36..e695eb7a7f 100644 --- a/user/edit.html +++ b/user/edit.html @@ -38,10 +38,12 @@ if (isadmin()) { foreach ($modules as $module) { $auth_options[$module] = get_string("auth_$module"."title", "auth"); } - echo ''; - echo ''.get_string("chooseauthmethod","auth").'' . "\n"; - choose_from_menu ($auth_options, "auth", $user->auth); - echo "\n"; + if (!$adminself) { /// Main admin is ALWAYS default manual + echo ''; + echo ''.get_string("chooseauthmethod","auth").'' . "\n"; + choose_from_menu ($auth_options, "auth", $user->auth); + echo "\n"; + } if ($adminself || is_internal_auth($user->auth) || (!empty($CFG->{'auth_'.$user->auth.'_stdchangepassword'}))) { echo ""; -- 2.39.5