From f1517e2ebdfbc5ac43ec6a33fe33cd17099bc595 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 23 Aug 2019 11:53:20 +0200 Subject: [PATCH] skip cache when updating user groups --- wcfsetup/install/files/lib/acp/form/UserEditForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php index 10aeb66070..4a5142ab66 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php @@ -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; -- 2.20.1