summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-06-08 20:57:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-06-08 20:57:16 +0000
commit566b801b431d8403483511dc9659782582a47375 (patch)
treefe8e7938767bca5186620d19b85bf7971553513a /usr/local
parentfd338d23f54017e37c2e67fa952cb5019a2c3f42 (diff)
downloadpfsense-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.php2
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 */
OpenPOWER on IntegriCloud