diff --git a/admin/manage_users.php b/admin/manage_users.php index 30818572..30e2c619 100644 --- a/admin/manage_users.php +++ b/admin/manage_users.php @@ -387,8 +387,10 @@ while ($myuser = hesk_dbFetchAssoc($res)) if ($myuser['id'] == $_SESSION['id']) { $edit_code = ''; - } - else + } elseif ($myuser['id'] == 1) + { + $edit_code = ' '; + } else { $edit_code = ''; } @@ -541,6 +543,11 @@ function edit_user() hesk_process_messages($hesklang['eyou'],'profile.php','NOTICE'); } + if ($id == 1) + { + hesk_process_messages($hesklang['cant_edit_admin'],'./manage_users.php'); + } + $_SESSION['edit_userdata'] = TRUE; if ( ! isset($_SESSION['save_userdata'])) diff --git a/language/en/text.php b/language/en/text.php index e1824e3e..23eb6d45 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -36,6 +36,7 @@ $hesklang['self_deactivation'] = 'You cannot deactivate yourself!'; $hesklang['inactive_user'] = 'Your account is currently inactive. Contact an administrator for more information.'; $hesklang['notify_customer_email'] = 'Emails to customer on reply'; $hesklang['notify_customer_email_text'] = 'Don\'t send email notifications of replies to the customer by default'; +$hesklang['cant_edit_admin'] = 'You cannot edit the God Admin (User ID = 1)'; // ADDED OR MODIFIED IN NuMods 1.4.0 $hesklang['numods'] = 'NuMods';