From 9143aaf4e695e0b76c31640aecd5f22f59a49f44 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 7 Feb 2014 11:46:10 -0500 Subject: Remove this sort. It's unnecessary and causes problems when editing and saving privileges, it can reorder users and cause edits to the wrong account. --- usr/local/www/system_usermanager_addprivs.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'usr/local/www/system_usermanager_addprivs.php') diff --git a/usr/local/www/system_usermanager_addprivs.php b/usr/local/www/system_usermanager_addprivs.php index df537e9..8a69310 100644 --- a/usr/local/www/system_usermanager_addprivs.php +++ b/usr/local/www/system_usermanager_addprivs.php @@ -42,15 +42,6 @@ function admusercmp($a, $b) { return strcasecmp($a['name'], $b['name']); } -function admin_users_sort() { - global $g, $config; - - if (!is_array($config['system']['user'])) - return; - - usort($config['system']['user'], "admusercmp"); -} - require("guiconfig.inc"); $pgtitle = array("System","User manager","Add privileges"); @@ -102,7 +93,6 @@ if ($_POST) { $a_user['priv'] = array_merge($a_user['priv'], $pconfig['sysprivs']); $a_user['priv'] = sort_user_privs($a_user['priv']); - admin_users_sort(); local_user_set($a_user); $retval = write_config(); $savemsg = get_std_save_message($retval); -- cgit v1.1