diff --git a/lib/Service/GroupSharingService.php b/lib/Service/GroupSharingService.php index 5264bef33..988d48b69 100644 --- a/lib/Service/GroupSharingService.php +++ b/lib/Service/GroupSharingService.php @@ -32,7 +32,7 @@ public function isGroupSharingAllowed(IUser $user): bool { $userGroups = $this->groupManager->getUserGroups($user); $userGroupNames = array_map(static fn (IGroup $group) => $group->getGID(), $userGroups); - $excludeGroupList = json_decode($this->config->getAppValue('core', 'shareapi_exclude_groups_list', '[]')); + $excludeGroupList = json_decode($this->config->getAppValue('core', 'shareapi_exclude_groups_list', '[]'), true); $excludeGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups'); // "no" => Allow sharing for everyone