diff options
author | Renato Botelho <renato@netgate.com> | 2017-01-10 18:27:15 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-10 18:27:15 -0200 |
commit | 6a9a75958c21ab3011ea6d52c00d5e370c08cf89 (patch) | |
tree | 50dc713c40bd7e0deb7b0386c46f6863223ae725 /src/usr/local/www/system_usermanager_addprivs.php | |
parent | a271ed3d5eff8595a558af802f883c47a7dab884 (diff) | |
parent | 3cb0c7c312d4c17cb75e8ce9fff3a28c706d76a5 (diff) | |
download | pfsense-6a9a75958c21ab3011ea6d52c00d5e370c08cf89.zip pfsense-6a9a75958c21ab3011ea6d52c00d5e370c08cf89.tar.gz |
Merge pull request #3343 from phil-davis/retval1
Diffstat (limited to 'src/usr/local/www/system_usermanager_addprivs.php')
-rw-r--r-- | src/usr/local/www/system_usermanager_addprivs.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/usr/local/www/system_usermanager_addprivs.php b/src/usr/local/www/system_usermanager_addprivs.php index ee6d416..3b2ec2e 100644 --- a/src/usr/local/www/system_usermanager_addprivs.php +++ b/src/usr/local/www/system_usermanager_addprivs.php @@ -84,8 +84,7 @@ if ($_POST) { $a_user['priv'] = sort_user_privs($a_user['priv']); local_user_set($a_user); - $retval = write_config(); - $savemsg = get_std_save_message($retval); + write_config(); post_redirect("system_usermanager.php", array('act' => 'edit', 'userid' => $userid)); @@ -110,21 +109,12 @@ function build_priv_list() { return($list); } -/* if ajax is calling, give them an update message */ -if (isAjax()) { - print_info_box($savemsg, 'success'); -} - include("head.inc"); if ($input_errors) { print_input_errors($input_errors); } -if ($savemsg) { - print_info_box($savemsg, 'success'); -} - $tab_array = array(); $tab_array[] = array(gettext("Users"), true, "system_usermanager.php"); $tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php"); |