mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #54596 from nextcloud/backport/53503/stable31
[stable31] fix(sharing): fix json decoding the list of groups excluded from sharing
This commit is contained in:
commit
051141fae2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue