skip cache when updating user groups
authorMarcel Werk <burntime@woltlab.com>
Fri, 23 Aug 2019 09:53:20 +0000 (11:53 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 23 Aug 2019 09:53:20 +0000 (11:53 +0200)
wcfsetup/install/files/lib/acp/form/UserEditForm.class.php

index 10aeb66070444599bc50a2e6e3cb05ee208205bf..4a5142ab66dac4d0b2acdb9032300ae0251b3006 100755 (executable)
@@ -333,7 +333,7 @@ class UserEditForm extends UserAddForm {
                
                // add default groups
                $defaultGroups = UserGroup::getAccessibleGroups([UserGroup::GUESTS, UserGroup::EVERYONE, UserGroup::USERS]);
-               $oldGroupIDs = $this->user->getGroupIDs();
+               $oldGroupIDs = $this->user->getGroupIDs(true);
                foreach ($oldGroupIDs as $oldGroupID) {
                        if (isset($defaultGroups[$oldGroupID])) {
                                $this->groupIDs[] = $oldGroupID;