Skip to content

Commit 9149db9

Browse files
Merge pull request #54595 from nextcloud/backport/53503/stable30
[stable30] fix(sharing): fix json decoding the list of groups excluded from sharing
2 parents ac90e02 + eb4dbdc commit 9149db9

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)