Skip to content

Commit bd6c16e

Browse files
Merge pull request #53503 from nextcloud/fix-json-decoding-groups-excluded-from-share
fix(sharing): fix json decoding the list of groups excluded from sharing
2 parents cc3938d + e2195a2 commit bd6c16e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Share20/ShareDisableChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function sharingDisabledForUser(?string $userId): bool {
3838

3939
if ($excludeGroups && $excludeGroups !== 'no') {
4040
$groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
41-
$excludedGroups = json_decode($groupsList);
41+
$excludedGroups = json_decode($groupsList, true);
4242
if (is_null($excludedGroups)) {
4343
$excludedGroups = explode(',', $groupsList);
4444
$newValue = json_encode($excludedGroups);

0 commit comments

Comments
 (0)