diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-06-08 20:57:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-06-08 20:57:16 +0000 |
commit | 566b801b431d8403483511dc9659782582a47375 (patch) | |
tree | fe8e7938767bca5186620d19b85bf7971553513a /usr/local | |
parent | fd338d23f54017e37c2e67fa952cb5019a2c3f42 (diff) | |
download | pfsense-566b801b431d8403483511dc9659782582a47375.zip pfsense-566b801b431d8403483511dc9659782582a47375.tar.gz |
Admin automatically defaults to the admin groups. Do not worry about
lack of group being sent.
Ticket #1752
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_usermanager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index fd700ac..725511f 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -85,7 +85,7 @@ if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER']) or $isAdminUser == true) { unset($input_errors); $pconfig = $_POST; - if(!$_POST['groupname']) + if(!$_POST['groupname'] and $_POST['usernamefld'] != "admin") $input_errors[] = "You must specify at least one group!"; /* input validation */ |