diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-02 01:55:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-02 01:55:49 +0000 |
commit | 392dc1a7ebb5e9e58bdf5ab7e1c633c9306e0d5e (patch) | |
tree | 39da6f1eb93379673f305b016b895aed738aa39d /usr/local/www | |
parent | 8622a20aeece62817632f1afd9101fd4bf30c9c9 (diff) | |
download | pfsense-392dc1a7ebb5e9e58bdf5ab7e1c633c9306e0d5e.zip pfsense-392dc1a7ebb5e9e58bdf5ab7e1c633c9306e0d5e.tar.gz |
unset() priv correctly.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/system_usermanager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index 4e56e45..b24b2e0 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -64,8 +64,9 @@ if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER'])) { } else if ($_GET['act'] == "del" && $_GET['what'] == "priv") { if ($t_privs[$_GET['privid']]) { $privdeleted = $t_privs[$_GET['privid']]['id']; - unset($t_privs[$_GET['privid']]); + unset($a_user[$id]['priv'][$_GET['privid']]); write_config(); + unset($t_privs[$_GET['privid']]); $_GET['act'] = "edit"; $retval = 0; $savemsg = get_std_save_message($retval); |