Add support for automatic assignment to moderated user groups
authorMatthias Schmidt <gravatronics@live.com>
Sat, 25 Apr 2015 16:40:12 +0000 (18:40 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 25 Apr 2015 16:40:12 +0000 (18:40 +0200)
wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php

index 3af826a622dc9b7e23f5f606edeff4627515eb27..d72f3758f675b8c6278496729db223037a90985a 100644 (file)
@@ -80,7 +80,11 @@ class UserGroupAssignmentAddForm extends AbstractForm {
         * @see \wcf\page\IPage::readData()
         */
        public function readData() {
-               $this->userGroups = UserGroup::getGroupsByType(array(UserGroup::OTHER));
+               $this->userGroups = UserGroup::getGroupsByType(array(), array(
+                       UserGroup::EVERYONE,
+                       UserGroup::GUESTS,
+                       UserGroup::USERS
+               ));
                foreach ($this->userGroups as $key => $userGroup) {
                        if (!$userGroup->isAccessible()) {
                                unset($this->userGroups[$key]);