diff options
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_usermanager_edit.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/usr/local/www/system_usermanager_edit.php b/usr/local/www/system_usermanager_edit.php index e002610..b27ca41 100644 --- a/usr/local/www/system_usermanager_edit.php +++ b/usr/local/www/system_usermanager_edit.php @@ -129,11 +129,15 @@ if ($_POST) { $t_privs[$id] = $priv; else $t_privs[] = $priv; - - if ($priv['id'] == "hasshell") { - assignUID($user['name']); - assignGID($user['groupname']); - } + + $name = $config['system']['user'][$userid]['name']; + $groupname = $config['system']['user'][$userid]['groupname']; + + if ($priv['id'] == "hasshell") { + log_error("Assigning UID to $name / $groupname"); + assignUID($name); + assignGID($groupname); + } write_config(); |