From: Alexander Ebert Date: Wed, 8 Jan 2020 14:04:11 +0000 (+0100) Subject: The owner group has always access to all groups X-Git-Tag: 5.2.1~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48277d0cb7f6229c2032481fe3cf5febc714595b;p=GitHub%2FWoltLab%2FWCF.git The owner group has always access to all groups --- 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]);