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
This commit is contained in:
Andy Scherzinger 2025-08-24 21:38:31 +02:00 committed by GitHub
commit bd6c16ea88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,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);