Merge pull request #54595 from nextcloud/backport/53503/stable30

[stable30] fix(sharing): fix json decoding the list of groups excluded from sharing
This commit is contained in:
Andy Scherzinger 2025-08-24 22:48:43 +02:00 committed by GitHub
commit 9149db9e43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ class ShareDisableChecker {
if ($excludeGroups && $excludeGroups !== 'no') {
$groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
$excludedGroups = json_decode($groupsList);
$excludedGroups = json_decode($groupsList, true);
if (is_null($excludedGroups)) {
$excludedGroups = explode(',', $groupsList);
$newValue = json_encode($excludedGroups);