From 2bb104667dc46ec6a026a94371f36346dd61a77d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 9 Aug 2011 19:37:53 +0200 Subject: [PATCH] Added parameter for user actions --- wcfsetup/install/files/lib/data/user/UserAction.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 4a5231616b..83d3444b89 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -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(); -- 2.20.1