From 48277d0cb7f6229c2032481fe3cf5febc714595b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 8 Jan 2020 15:04:11 +0100 Subject: [PATCH] The owner group has always access to all groups --- .../cache/builder/UserGroupPermissionCacheBuilder.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php index e8b582adfb..263489efd8 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php @@ -127,8 +127,7 @@ class UserGroupPermissionCacheBuilder extends AbstractCacheBuilder { $accessibleGroupIDs = explode(',', $result); if ($includesOwnerGroup) { // Regardless of the actual permissions, the owner group has access to all groups. - - $accessibleGroupIDs[] = $ownerGroup->groupID; + $accessibleGroupIDs = array_keys(UserGroup::getAllGroups()); } else if (!$includesOwnerGroup && in_array($ownerGroup->groupID, $accessibleGroupIDs)) { $accessibleGroupIDs = array_diff($accessibleGroupIDs, [$ownerGroup->groupID]); -- 2.20.1