mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
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:
commit
bd6c16ea88
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue