summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-11 14:02:21 -0400
committerjim-p <jimp@pfsense.org>2011-08-11 14:04:00 -0400
commit5574e7421454af8e9140d920904a1536139808b9 (patch)
tree4ac94c6a53af3b319e71156a5d974fc0eada6dcb /usr
parent72f7c8376849496e3a1b2bced91a72c9b8c56f04 (diff)
downloadpfsense-5574e7421454af8e9140d920904a1536139808b9.zip
pfsense-5574e7421454af8e9140d920904a1536139808b9.tar.gz
Sort user privileges so dashboard/index.php come first, so if a user has those permissions, they get redirected there first and not to another page.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_usermanager_addprivs.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/system_usermanager_addprivs.php b/usr/local/www/system_usermanager_addprivs.php
index 6716036..edfb2ad 100644
--- a/usr/local/www/system_usermanager_addprivs.php
+++ b/usr/local/www/system_usermanager_addprivs.php
@@ -101,6 +101,7 @@ if ($_POST) {
else
$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();
OpenPOWER on IntegriCloud