From 79f41a7652a764f9f3a770dbee23974f5ea2e246 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 18 Sep 2017 13:04:26 -0400 Subject: [PATCH] Permission groups seem to be good to go? --- admin/manage_users.php | 2 +- inc/profile_functions.inc.php | 16 +++++++++------- language/en/text.php | 1 + 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/admin/manage_users.php b/admin/manage_users.php index edad176c..e96aff40 100644 --- a/admin/manage_users.php +++ b/admin/manage_users.php @@ -700,7 +700,7 @@ function hesk_validateUserInfo($pass_required = 1, $redirect_to = './manage_user $myuser['email'] = hesk_validateEmail(hesk_POST('email'), 'ERR', 0) or $hesk_error_buffer .= '
  • ' . $hesklang['enter_valid_email'] . '
  • '; $myuser['user'] = hesk_input(hesk_POST('user')) or $hesk_error_buffer .= '
  • ' . $hesklang['enter_username'] . '
  • '; $myuser['isadmin'] = hesk_POST('template') == '1' ? 1 : 0; - $myuser['template'] = hesk_POST('reset-permission-template') === '1' ? -1 : hesk_POST('template'); + $myuser['template'] = hesk_POST('template'); $myuser['signature'] = hesk_input(hesk_POST('signature')); $myuser['autoassign'] = hesk_POST('autoassign') == 'Y' ? 1 : 0; $myuser['active'] = empty($_POST['active']) ? 0 : 1; diff --git a/inc/profile_functions.inc.php b/inc/profile_functions.inc.php index acbad51b..52bb241a 100644 --- a/inc/profile_functions.inc.php +++ b/inc/profile_functions.inc.php @@ -182,17 +182,19 @@ function hesk_profile_tab($session_array = 'new', $is_profile_page = true, $acti $selected = $_SESSION[$session_array]['permission_template'] == '-1' ? 'selected' : ''; echo ''; echo ''; - outputCheckboxJavascript($action); ?> - - + - +