summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager_addprivs.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-02-07 11:46:10 -0500
committerjim-p <jimp@pfsense.org>2014-02-07 11:47:18 -0500
commit9143aaf4e695e0b76c31640aecd5f22f59a49f44 (patch)
treebc259a29e0844d7b5e082120d532272676674446 /usr/local/www/system_usermanager_addprivs.php
parenteb83317a1b457ef4915c50434d9ecbe805618014 (diff)
downloadpfsense-9143aaf4e695e0b76c31640aecd5f22f59a49f44.zip
pfsense-9143aaf4e695e0b76c31640aecd5f22f59a49f44.tar.gz
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.
Diffstat (limited to 'usr/local/www/system_usermanager_addprivs.php')
-rw-r--r--usr/local/www/system_usermanager_addprivs.php10
1 files changed, 0 insertions, 10 deletions
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);
OpenPOWER on IntegriCloud