Skip to content

Commit 051141f

Browse files
Merge pull request #54596 from nextcloud/backport/53503/stable31
[stable31] fix(sharing): fix json decoding the list of groups excluded from sharing
2 parents e6b5edd + bfd0458 commit 051141f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Share20/ShareDisableChecker.php

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

4444
if ($excludeGroups && $excludeGroups !== 'no') {
4545
$groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
46-
$excludedGroups = json_decode($groupsList);
46+
$excludedGroups = json_decode($groupsList, true);
4747
if (is_null($excludedGroups)) {
4848
$excludedGroups = explode(',', $groupsList);
4949
$newValue = json_encode($excludedGroups);

0 commit comments

Comments
 (0)