summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_usermanager_addprivs.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-01-11 07:24:39 +0545
committerGitHub <noreply@github.com>2017-01-11 07:24:39 +0545
commit753280bb6c75fb3aa5a1fcc2ef65640faa78340d (patch)
tree3e3abc677eabc41bb8f99c3d3c2b16b5cf76ee74 /src/usr/local/www/system_usermanager_addprivs.php
parent9187d6f7ea47bd44a9f4908f916c507419986c52 (diff)
parent6a9a75958c21ab3011ea6d52c00d5e370c08cf89 (diff)
downloadpfsense-753280bb6c75fb3aa5a1fcc2ef65640faa78340d.zip
pfsense-753280bb6c75fb3aa5a1fcc2ef65640faa78340d.tar.gz
Merge branch 'master' into sysprvwarn2
Diffstat (limited to 'src/usr/local/www/system_usermanager_addprivs.php')
-rw-r--r--src/usr/local/www/system_usermanager_addprivs.php12
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 d649cff..8babcd5 100644
--- a/src/usr/local/www/system_usermanager_addprivs.php
+++ b/src/usr/local/www/system_usermanager_addprivs.php
@@ -85,8 +85,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));
@@ -125,21 +124,12 @@ function get_root_priv_item_text() {
return($priv_text);
}
-/* 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");
OpenPOWER on IntegriCloud