Made 'restrictUserGroupIDs' optional
authorMarcel Werk <burntime@woltlab.com>
Tue, 1 Jan 2019 21:19:26 +0000 (22:19 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 1 Jan 2019 21:19:26 +0000 (22:19 +0100)
wcfsetup/install/files/lib/data/user/UserAction.class.php

index 24b50335cab42b3c272addd8b92dced8492ed01c..c2fd6279a0ecd449da4f6df9020c5646ae8ebae0 100644 (file)
@@ -478,7 +478,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
        public function validateGetSearchResultList() {
                $this->readBoolean('includeUserGroups', false, 'data');
                $this->readString('searchString', false, 'data');
-               $this->readIntegerArray('restrictUserGroupIDs', false, 'data');
+               $this->readIntegerArray('restrictUserGroupIDs', true, 'data');
                
                if (isset($this->parameters['data']['excludedSearchValues']) && !is_array($this->parameters['data']['excludedSearchValues'])) {
                        throw new UserInputException('excludedSearchValues');