Added parameter for user actions
authorMarcel Werk <burntime@woltlab.com>
Tue, 9 Aug 2011 17:37:53 +0000 (19:37 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 9 Aug 2011 17:37:53 +0000 (19:37 +0200)
wcfsetup/install/files/lib/data/user/UserAction.class.php

index 4a5231616b46e138116c855121aeab00a85cae5b..83d3444b89f4796ffcb27d4ffe76478f69918614 100644 (file)
@@ -106,8 +106,9 @@ class UserAction extends AbstractDatabaseObjectAction {
                }
                
                // insert user groups
+               $addDefaultGroups = (isset($this->parameters['addDefaultGroups'])) ? $this->parameters['addDefaultGroups'] : true;
                $groupIDs = (isset($this->parameters['groups'])) ? $this->parameters['groups'] : array();
-               $userEditor->addToGroups($groupIDs, false);
+               $userEditor->addToGroups($groupIDs, false, $addDefaultGroups);
                
                // insert visible languages
                $languageIDs = (isset($this->parameters['languages'])) ? $this->parameters['languages'] : array();